]> www.ginac.de Git - cln.git/blobdiff - src/float/lfloat/misc/cl_LF_idecode.cc
Extend the exponent range from 32 bits to 64 bits on selected platforms.
[cln.git] / src / float / lfloat / misc / cl_LF_idecode.cc
index 959aa3dba3b0215484e113c3f1089f568d3ff36e..033e4bd95d30fb337e2d4e9ebbf1f0c914356d77 100644 (file)
@@ -4,7 +4,7 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_lfloat.h"
+#include "cln/lfloat.h"
 
 
 // Implementation.
 #include "cl_I.h"
 #include "cl_DS.h"
 
+namespace cln {
+
 MAYBE_INLINE
 const cl_idecoded_float integer_decode_float (const cl_LF& x)
 {
        // x entpacken:
-       var uintL uexp = TheLfloat(x)->expo;
+       var uintE uexp = TheLfloat(x)->expo;
        if (uexp == 0)
                { return cl_idecoded_float(0, 0, 1); }
        var cl_signean sign = TheLfloat(x)->sign;
@@ -32,7 +34,9 @@ const cl_idecoded_float integer_decode_float (const cl_LF& x)
                // Mantisse
                mant,
                // e-intDsize*n = uexp-LF_exp_mid-intDsize*n als Integer
-               minus(uexp, LF_exp_mid + intDsize*(uintL)len),
+               minus(uexp, LF_exp_mid + intDsize*len),
                (sign>=0 ? cl_I(1) : cl_I(-1)) // (-1)^s erzeugen
               );
 }
+
+}  // namespace cln