#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:
{ 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