31 #ifdef POK_NEEDS_LIBMATH
33 #include "math_private.h"
35 static const float huge = 1.0e30;
44 jj0 = ((i0>>23)&0xff)-0x7f;
47 if(huge+x>(
float)0.0) {
48 if(i0<0) {i0=0x80000000;}
49 else if(i0!=0) { i0=0x3f800000;}
52 i = (0x007fffff)>>jj0;
53 if((i0&i)==0)
return x;
54 if(huge+x>(
float)0.0) {
55 if(i0>0) i0 += (0x00800000)>>jj0;
60 if(jj0==0x80)
return x+x;