]> www.ginac.de Git - cln.git/blobdiff - src/float/dfloat/misc/cl_DF_exponent.cc
Fix linking problems on some platforms caused by inline/non-inline versions
[cln.git] / src / float / dfloat / misc / cl_DF_exponent.cc
index 3bb84c3cf48cd7dea143c9b0da78dd7bed1e9575..677bd19008b7ab92526a0fb140b7d735b05fb979 100644 (file)
@@ -4,17 +4,20 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_dfloat.h"
+#include "cln/dfloat.h"
 
 
 // Implementation.
 
 #include "cl_DF.h"
 
-MAYBE_INLINE
-sintL float_exponent (const cl_DF& x)
+namespace cln {
+
+CL_INLINE sintE CL_INLINE_DECL(float_exponent) (const cl_DF& x)
 {
        var uintL uexp = DF_uexp(TheDfloat(x)->dfloat_value_semhi);
        if (uexp==0) { return 0; }
        return (sintL)(uexp - DF_exp_mid);
 }
+
+}  // namespace cln