7 #include "cln/sfloat.h"
13 #define MAYBE_INLINE inline
14 #include "cl_SF_minusp.cc"
18 cl_signean compare (const cl_SF& x, const cl_SF& y)
21 // x und y haben verschiedenes Vorzeichen ->
24 // x und y haben gleiches Vorzeichen ->
25 // x >=0 -> vergleiche x und y (die rechten 24 Bits)
26 // x <0 -> vergleiche y und x (die rechten 24 Bits)
31 { if (x.word < y.word) return signean_minus; // x<y
32 if (x.word > y.word) return signean_plus; // x>y
37 { return signean_minus; } // x<y
42 { return signean_plus; } // x>y
45 { if (x.word > y.word) return signean_minus; // |x|>|y| -> x<y
46 if (x.word < y.word) return signean_plus; // |x|<|y| -> x>y