Go to the source code of this file.
Functions |
| double | floor (double x) |
Variables |
| static const double | huge = 1.0e300 |
Function Documentation
Definition at line 29 of file s_floor.c.
References EXTRACT_WORDS, huge, i, i1, INSERT_WORDS, and j.
Referenced by __kernel_rem_pio2(), and SDL_floor().
{
j0 = ((i0>>20)&0x7ff)-0x3ff;
if(j0<20) {
if(j0<0) {
if(i0>=0) {i0=i1=0;}
else if(((i0&0x7fffffff)|
i1)!=0)
{ i0=0xbff00000;i1=0;}
}
} else {
i = (0x000fffff)>>j0;
if(((i0&i)|
i1)==0)
return x;
if(i0<0) i0 += (0x00100000)>>j0;
i0 &= (~i); i1=0;
}
}
} else if (j0>51) {
if(j0==0x400)
return x+
x;
} else {
if(i0<0) {
if(j0==20) i0+=1;
else {
j = i1+(1<<(52-j0));
}
}
i1 &= (~i);
}
}
}
Variable Documentation
| const double huge = 1.0e300 |
|
static |