diff options
Diffstat (limited to 'lib/msun/src/s_erf.c')
-rw-r--r-- | lib/msun/src/s_erf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/s_erf.c b/lib/msun/src/s_erf.c index 0886e5e..a4e91a3 100644 --- a/lib/msun/src/s_erf.c +++ b/lib/msun/src/s_erf.c @@ -201,7 +201,7 @@ erf(double x) if(ix < 0x3feb0000) { /* |x|<0.84375 */ if(ix < 0x3e300000) { /* |x|<2**-28 */ if (ix < 0x00800000) - return 0.125*(8.0*x+efx8*x); /*avoid underflow */ + return (8*x+efx8*x)/8; /* avoid spurious underflow */ return x + efx*x; } z = x*x; |