]> www.ginac.de Git - cln.git/blobdiff - src/float/sfloat/elem/cl_SF_ftrunc.cc
* */*: Convert encoding from ISO 8859-1 to UTF-8.
[cln.git] / src / float / sfloat / elem / cl_SF_ftrunc.cc
index 073b0f6e93e25833f8c2a417c5261d6945c8a133..edc957943588b589a9d38df615ad0793396beb0b 100644 (file)
@@ -4,13 +4,15 @@
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_sfloat.h"
+#include "cln/sfloat.h"
 
 
 // Implementation.
 
 #include "cl_SF.h"
 
+namespace cln {
+
 const cl_SF ftruncate (const cl_SF& x)
 {
 // Methode:
@@ -26,9 +28,11 @@ const cl_SF ftruncate (const cl_SF& x)
             { return x; }
             else
             { return cl_SF_from_word(
-                x.word & // Bitmaske: Bits 16-e..0 gelöscht, alle anderen gesetzt
+                x.word & // Bitmaske: Bits 16-e..0 gelöscht, alle anderen gesetzt
                 ~(bit(SF_mant_len+SF_mant_shift + 1+SF_exp_mid-uexp) - bit(SF_mant_shift))
                 );
             }
         }
 }
+
+}  // namespace cln