diff options
author | das <das@FreeBSD.org> | 2011-02-10 07:37:50 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2011-02-10 07:37:50 +0000 |
commit | b0f6e7189c4ef7b5cddb70b4839db87ad4e5d7e8 (patch) | |
tree | b50fb75891d321c907e75f542ddfd5e9fb57748c /lib/msun/src/s_atan.c | |
parent | f2ff0c6d0eea75db8803d1e7ffbdc0b438257407 (diff) | |
download | FreeBSD-src-b0f6e7189c4ef7b5cddb70b4839db87ad4e5d7e8.zip FreeBSD-src-b0f6e7189c4ef7b5cddb70b4839db87ad4e5d7e8.tar.gz |
For small arguments, these functions use simple approximations,
e.g. cos(small) = 1, sin(small) = small. This commit tightens
the thresholds at which the simple approximations are used.
Reviewed by: bde
Diffstat (limited to 'lib/msun/src/s_atan.c')
-rw-r--r-- | lib/msun/src/s_atan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/s_atan.c b/lib/msun/src/s_atan.c index 24daed5..566f5dc7 100644 --- a/lib/msun/src/s_atan.c +++ b/lib/msun/src/s_atan.c @@ -87,7 +87,7 @@ atan(double x) if(hx>0) return atanhi[3]+*(volatile double *)&atanlo[3]; else return -atanhi[3]-*(volatile double *)&atanlo[3]; } if (ix < 0x3fdc0000) { /* |x| < 0.4375 */ - if (ix < 0x3e200000) { /* |x| < 2^-29 */ + if (ix < 0x3e400000) { /* |x| < 2^-27 */ if(huge+x>one) return x; /* raise inexact */ } id = -1; |