diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-05-15 17:47:29 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-05-15 17:47:29 +0000 |
commit | 5a608ccc2d676aa124f6b55a7b20d071e408ca31 (patch) | |
tree | 41c40103e1b049d25bc519ca0688f48d82d61656 /NEWS | |
parent | ff069f024ae8cf15d53429e034d67ddcece0f67a (diff) | |
download | glibc-5a608ccc2d676aa124f6b55a7b20d071e408ca31.tar glibc-5a608ccc2d676aa124f6b55a7b20d071e408ca31.tar.gz glibc-5a608ccc2d676aa124f6b55a7b20d071e408ca31.tar.bz2 glibc-5a608ccc2d676aa124f6b55a7b20d071e408ca31.zip |
Fix tanf spurious underflows (bug 18221).
The flt-32 implementation of tanf produces spurious underflow
exceptions for some small arguments, through computing values on the
order of x^5. This patch fixes this by adjusting the threshold for
returning x (or, as applicable, +/- 1/x) to 2**-13 (the next term in
the power series being x^3/3).
Tested for x86_64 and x86.
[BZ #18221]
* sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
2**-28 as threshold for returning x or +/- 1/x.
* math/auto-libm-test-in: Add more tests of tan.
* math/auto-libm-test-out: Regenerated.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ Version 2.22 17999, 18007, 18019, 18020, 18029, 18030, 18032, 18036, 18038, 18039, 18042, 18043, 18046, 18047, 18068, 18080, 18093, 18100, 18104, 18110, 18111, 18125, 18128, 18138, 18185, 18196, 18197, 18206, 18210, 18211, - 18217, 18220, 18247, 18287, 18319, 18333, 18346, 18397, 18409. + 18217, 18220, 18221, 18247, 18287, 18319, 18333, 18346, 18397, 18409. * Cache information can be queried via sysconf() function on s390 e.g. with _SC_LEVEL1_ICACHE_SIZE as argument. |