7 #include "cln/ffloat.h"
15 #define MAYBE_INLINE inline
16 #include "cl_FF_minusp.cc"
17 #include "cl_FF_zerop.cc"
22 const cl_FF signum (const cl_FF& x)
24 if (minusp(x)) { return cl_FF_minus1; } // x<0 -> -1.0
25 elif (zerop(x)) { return cl_FF_0; } // x=0 -> 0.0
26 else { return cl_FF_1; } // x>0 -> +1.0