summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2008-01-20 04:09:44 +0000
committerbde <bde@FreeBSD.org>2008-01-20 04:09:44 +0000
commitef5ed15ee4290cbcbaa6908c000916bc6ee5b2a6 (patch)
tree390aab4e5a895bdb89ddbf93d4af4f293251594d /lib
parentb3048e43651e304e35ddf27a6661e2f35f538565 (diff)
downloadFreeBSD-src-ef5ed15ee4290cbcbaa6908c000916bc6ee5b2a6.zip
FreeBSD-src-ef5ed15ee4290cbcbaa6908c000916bc6ee5b2a6.tar.gz
Oops, when merging from the float version to the double versions, don't
forget to translate "float" to "double". ucbtest didn't detect the bug, but exhaustive testing of the float case relative to the double case eventually did. The bug only affects args x with |x| ~> 2**19*(pi/2) on non-i386 (i386 is broken in a different way for large args).
Diffstat (limited to 'lib')
-rw-r--r--lib/msun/src/k_rem_pio2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msun/src/k_rem_pio2.c b/lib/msun/src/k_rem_pio2.c
index 8c99c34..c7a8ba2 100644
--- a/lib/msun/src/k_rem_pio2.c
+++ b/lib/msun/src/k_rem_pio2.c
@@ -278,7 +278,7 @@ recompute:
case 2:
fw = 0.0;
for (i=jz;i>=0;i--) fw += fq[i];
- STRICT_ASSIGN(float,fw,fw);
+ STRICT_ASSIGN(double,fw,fw);
y[0] = (ih==0)? fw: -fw;
fw = fq[0]-fw;
for (i=1;i<=jz;i++) fw += fq[i];
OpenPOWER on IntegriCloud