13 #include "cl_sfloat.h"
14 #include "cl_ffloat.h"
15 #include "cl_dfloat.h"
16 #include "cl_lfloat.h"
19 const cl_F_fdiv_t ftruncate2 (const cl_F& x)
21 #if 0 // 3 type dispatches
22 var cl_F q = ftruncate(x);
23 return cl_F_fdiv_t(q,x-q);
24 #else // 1 type dispatch
26 , var cl_SF q = ftruncate(x); return cl_F_fdiv_t(q,x-q);
27 , var cl_FF q = ftruncate(x); return cl_F_fdiv_t(q,x-q);
28 , var cl_DF q = ftruncate(x); return cl_F_fdiv_t(q,x-q);
29 , var cl_LF q = ftruncate(x); return cl_F_fdiv_t(q,LF_LF_minus_LF(x,q));