]> www.ginac.de Git - cln.git/blobdiff - src/float/misc/cl_F_mostneg.cc
2006-04-25 Bruno Haible <bruno@clisp.org>
[cln.git] / src / float / misc / cl_F_mostneg.cc
index 066c63085b72ce75e79eb72fe4295b85cc7ef18d..ca1d467114649bcb08c07fcd9132863fbb68a0a4 100644 (file)
@@ -6,7 +6,7 @@
 CL_PROVIDE(cl_F_mostneg)
 
 // Specification.
-#include "cl_float.h"
+#include "cln/float.h"
 
 // Implementation.
 
@@ -17,6 +17,8 @@ CL_PROVIDE(cl_F_mostneg)
 #include "cl_LF.h"
 #include "cl_LF_impl.h"
 
+namespace cln {
+
 // Exponent so groß wie möglich, Mantisse 1...1, Vorzeichen -.
 
 static const cl_SF most_negative_SF =
@@ -39,9 +41,9 @@ inline const cl_LF most_negative_LF (uintC len)
        return erg;
 }
 
-const cl_F most_negative_float (cl_float_format_t f)
+const cl_F most_negative_float (float_format_t f)
 {
-       floatformatcase((uintL)f
+       floatformatcase((uintC)f
        ,       return most_negative_SF;
        ,       return most_negative_FF;
        ,       return most_negative_DF;
@@ -49,4 +51,6 @@ const cl_F most_negative_float (cl_float_format_t f)
        );
 }
 
+}  // namespace cln
+
 CL_PROVIDE_END(cl_F_mostneg)