aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-08-07 23:10:35 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-08-07 23:10:35 +0000
commit37550cb3d6591a8f443467707ec80b4ab5c2e157 (patch)
tree934ef1da0ab3a2cd9d0a23b1645392914e95afcc /ChangeLog
parentdb2bcbcb631f1c1aa023ef9f23a968e1ac288423 (diff)
downloadglibc-37550cb3d6591a8f443467707ec80b4ab5c2e157.zip
glibc-37550cb3d6591a8f443467707ec80b4ab5c2e157.tar.gz
glibc-37550cb3d6591a8f443467707ec80b4ab5c2e157.tar.bz2
Fix tan missing underflows (bug 16517).
Similar to various other bugs in this area, some tan implementations do not raise the underflow exception for subnormal arguments, when the result is tiny and inexact. This patch forces the exception in a similar way to previous fixes. Tested for x86_64, x86, mips64 and powerpc. [BZ #16517] * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>. (tan): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>. (__kernel_tanf): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>. (__kernel_tanl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>. (__kernel_tanl): Force underflow exception for arguments with small absolute value. * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>. (__kernel_tanl): Force underflow exception for arguments with small absolute value. * math/auto-libm-test-in: Add more tests of tan. * math/auto-libm-test-out: Regenerated.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog21
1 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ac13834..473ed33 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2015-08-07 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #16517]
+ * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
+ (tan): Force underflow exception for arguments with small absolute
+ value.
+ * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
+ (__kernel_tanf): Force underflow exception for arguments with
+ small absolute value.
+ * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
+ (__kernel_tanl): Force underflow exception for arguments with
+ small absolute value.
+ * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
+ (__kernel_tanl): Force underflow exception for arguments with
+ small absolute value.
+ * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
+ (__kernel_tanl): Force underflow exception for arguments with
+ small absolute value.
+ * math/auto-libm-test-in: Add more tests of tan.
+ * math/auto-libm-test-out: Regenerated.
+
2015-08-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
Fix sysdeps/i386/fpu/s_scalbn.S build