#include "cl_sysdep.h"
// Specification.
-#include "cl_lfloat.h"
+#include "cln/lfloat.h"
// Implementation.
#include "cl_LF_impl.h"
#include "cl_DS.h"
+namespace cln {
+
const cl_LF fround (const cl_LF& x)
{
// Methode:
var uintC mantlen;
LF_decode(x, { return x; }, sign=,exp=,mantMSDptr=,mantlen=,);
if (exp<0) { return encode_LF0(mantlen); } // e<0 -> Ergebnis 0.0
- if ((uintL)exp >= intDsize*(uintL)mantlen) // e>=16n -> x als Ergebnis
+ if ((uintL)exp >= intDsize*mantlen) // e>=16n -> x als Ergebnis
{ return x; }
else
// 0 <= e < 16n
return encode_LF0(len); // e<0 -> Ergebnis 0.0
}
var uintL exp = uexp - LF_exp_mid;
- if (exp >= intDsize*(uintL)len) // e>=16n -> x als Ergebnis
+ if (exp >= intDsize*len) // e>=16n -> x als Ergebnis
{ return x; }
// 0 <= e < 16n
// alle hinteren 16n-e Bits wegrunden:
}
#endif
}
+
+} // namespace cln