PageRenderTime 39ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/cln-1.3.2/src/float/misc/cl_F_max.cc

#
C++ | 19 lines | 8 code | 7 blank | 4 comment | 0 complexity | 27757606f98437342e6fbd9be81ecf5b MD5 | raw file
Possible License(s): GPL-2.0
  1. // max().
  2. // General includes.
  3. #include "base/cl_sysdep.h"
  4. // Specification.
  5. #include "cln/float.h"
  6. // Implementation.
  7. namespace cln {
  8. const cl_F max (const cl_F& x, const cl_F& y)
  9. {
  10. return (x >= y ? x : y);
  11. }
  12. } // namespace cln