32 #ifdef POK_NEEDS_LIBMATH
34 #include "math_private.h"
36 static const float one = 1.0, tiny=1.0e-30;
39 __ieee754_sqrtf(
float x)
42 int32_t sign = (int)0x80000000;
49 if((ix&0x7f800000)==0x7f800000) {
55 if((ix&(~sign))==0)
return x;
62 for(i=0;(ix&0x00800000)==0;i++) ix<<=1;
66 ix = (ix&0x007fffff)|0x00800000;
98 ix = (q>>1)+0x3f000000;
100 SET_FLOAT_WORD(z,ix);