Back to index
Go to the source code of this file.
Definition at line 27 of file s_nearbyintf.c.
float two23 = copysignf (0x1.0p23, x);
r = x + two23;
r = r - two23;
/* nearbyint(-0.1) == -0, and in general we'll always have the same sign
as our input. */
return copysign (r, x);