summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/s_atan.c
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2011-02-10 07:37:50 +0000
committerdas <das@FreeBSD.org>2011-02-10 07:37:50 +0000
commitb0f6e7189c4ef7b5cddb70b4839db87ad4e5d7e8 (patch)
treeb50fb75891d321c907e75f542ddfd5e9fb57748c /lib/msun/src/s_atan.c
parentf2ff0c6d0eea75db8803d1e7ffbdc0b438257407 (diff)
downloadFreeBSD-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.c2
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;
OpenPOWER on IntegriCloud