26 static const double huge = 1.0e300;
28 static double huge = 1.0e300;
32 double floor(
double x)
42 j0 = ((i0>>20)&0x7ff)-0x3ff;
47 else if(((i0&0x7fffffff)|i1)!=0)
48 { i0=0xbff00000;i1=0;}
52 if(((i0&i)|i1)==0)
return x;
54 if(i0<0) i0 += (0x00100000)>>j0;
59 if(j0==0x400)
return x+x;
62 i = ((unsigned)(0xffffffff))>>(j0-20);
63 if((i1&i)==0)
return x;