]> www.ginac.de Git - cln.git/blobdiff - src/float/ffloat/misc/cl_FF_eqhashcode.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / float / ffloat / misc / cl_FF_eqhashcode.cc
index 2f0492e1ea57ddaefebd4ebcf9e32c4d504b44b5..dd6cf8095db0bfd5e6ff5d21fd2bd4c922c8f0b0 100644 (file)
@@ -4,7 +4,7 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_ffloat.h"
+#include "cln/ffloat.h"
 
 
 // Implementation.
@@ -12,8 +12,9 @@
 #include "cl_N.h"
 #include "cl_FF.h"
 
-MAYBE_INLINE
-uint32 cl_equal_hashcode (const cl_FF& x)
+namespace cln {
+
+CL_INLINE uint32 CL_INLINE_DECL(equal_hashcode) (const cl_FF& x)
 {
        var cl_signean sign;
        var sintL exp;
@@ -22,3 +23,5 @@ uint32 cl_equal_hashcode (const cl_FF& x)
        var uint32 msd = mant << (32-(FF_mant_len+1));
        return equal_hashcode_low(msd,exp,sign);
 }
+
+}  // namespace cln