diff options
Diffstat (limited to 'lib/msun/src/s_expm1.c')
-rw-r--r-- | lib/msun/src/s_expm1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/msun/src/s_expm1.c b/lib/msun/src/s_expm1.c index f41c7e3..5aa1917 100644 --- a/lib/msun/src/s_expm1.c +++ b/lib/msun/src/s_expm1.c @@ -108,6 +108,8 @@ __FBSDID("$FreeBSD$"); * to produce the hexadecimal values shown. */ +#include <float.h> + #include "math.h" #include "math_private.h" @@ -168,7 +170,7 @@ expm1(double x) hi = x - t*ln2_hi; /* t*ln2_hi is exact here */ lo = t*ln2_lo; } - x = hi - lo; + STRICT_ASSIGN(double, x, hi - lo); c = (hi-x)-lo; } else if(hx < 0x3c900000) { /* when |x|<2**-54, return x */ |