]> www.ginac.de Git - cln.git/blobdiff - src/float/misc/cl_F_leastneg.cc
Cater to the fact that g++ 4.3 will use a different naming for
[cln.git] / src / float / misc / cl_F_leastneg.cc
index 5f31488f0e9f1f0943f2dae04f05d02badc91bcd..918db47305b24b18d233e69ae01edc142769ee5b 100644 (file)
@@ -6,7 +6,7 @@
 CL_PROVIDE(cl_F_leastneg)
 
 // Specification.
-#include "cl_float.h"
+#include "cln/float.h"
 
 // Implementation.
 
@@ -17,7 +17,9 @@ CL_PROVIDE(cl_F_leastneg)
 #include "cl_LF.h"
 #include "cl_LF_impl.h"
 
-// Exponent so klein wie möglich, Mantisse 10...0, Vorzeichen -.
+namespace cln {
+
+// Exponent so klein wie möglich, Mantisse 10...0, Vorzeichen -.
 
 static const cl_SF least_negative_SF =
        make_SF(-1,SF_exp_low,bit(SF_mant_len));
@@ -45,9 +47,9 @@ inline const cl_LF least_negative_LF (uintC len)
        return erg;
 }
 
-const cl_F least_negative_float (cl_float_format_t f)
+const cl_F least_negative_float (float_format_t f)
 {
-       floatformatcase((uintL)f
+       floatformatcase((uintC)f
        ,       return least_negative_SF;
        ,       return least_negative_FF;
        ,       return least_negative_DF;
@@ -55,4 +57,6 @@ const cl_F least_negative_float (cl_float_format_t f)
        );
 }
 
+}  // namespace cln
+
 CL_PROVIDE_END(cl_F_leastneg)