14 const cl_F_div_t cl_round_pi2 (const cl_F& x)
16 if (float_exponent(x) < 0)
17 // Exponent <0 -> |x|<1/2 -> |x/(pi/2)| < 1/2, also Division unnötig
18 return cl_F_div_t(0,x); // Quotient 0, Rest x
20 // x durch pi/2 (mit hinreichender Genauigkeit) dividieren
21 return round2(x,scale_float(pi(x),-1));