PageRenderTime 45ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/cln-1.3.2/src/rational/misc/cl_RA_max.cc

#
C++ | 19 lines | 8 code | 7 blank | 4 comment | 0 complexity | 755eaa164b5f6427aecf616a60f0e1b0 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/rational.h"
  6. // Implementation.
  7. namespace cln {
  8. const cl_RA max (const cl_RA& x, const cl_RA& y)
  9. {
  10. return (x >= y ? x : y);
  11. }
  12. } // namespace cln