X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=src%2Ffloat%2Flfloat%2Fmisc%2Fcl_LF_idecode.cc;h=033e4bd95d30fb337e2d4e9ebbf1f0c914356d77;hb=e52830748240df6b0ab51d8a78243c88132f6c75;hp=959aa3dba3b0215484e113c3f1089f568d3ff36e;hpb=dd9e0f894eec7e2a8cf85078330ddc0a6639090b;p=cln.git diff --git a/src/float/lfloat/misc/cl_LF_idecode.cc b/src/float/lfloat/misc/cl_LF_idecode.cc index 959aa3d..033e4bd 100644 --- a/src/float/lfloat/misc/cl_LF_idecode.cc +++ b/src/float/lfloat/misc/cl_LF_idecode.cc @@ -4,7 +4,7 @@ #include "cl_sysdep.h" // Specification. -#include "cl_lfloat.h" +#include "cln/lfloat.h" // Implementation. @@ -13,11 +13,13 @@ #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