about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-09-14 22:40:05 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-09-14 22:40:05 +0000
commitde5e81691c80468ff97c5260b4020aeaecfe418d (patch)
tree210c246a20f943215e12e05ba41f105f3c628596 /ChangeLog
parent903af5af9a0404c1dfeb7b4db6d5a23a1e45593f (diff)
downloadglibc-de5e81691c80468ff97c5260b4020aeaecfe418d.tar.gz
glibc-de5e81691c80468ff97c5260b4020aeaecfe418d.tar.xz
glibc-de5e81691c80468ff97c5260b4020aeaecfe418d.zip
Fix i386 exp missing underflows (bug 18961).
On i386, the double version of exp can miss underflow exceptions if
the result is in the subnormal range for double but the last 11 bits
of the 64-bit extended-precision mantissa happen to be zero.  This
patch forces the exception in a similar way to previous fixes.

As with the exp2 fixes, the expf changes may in fact not be needed to
ensure underflow exceptions, but are included for consistency and to
fix the exp part of bug 18875 by ensuring that excess range and
precision is removed from underflowing return values.

Tested for x86_64 and x86.

	[BZ #18875]
	[BZ #18961]
	* sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
	(MO): New macro.
	(__ieee754_exp): For small results, force underflow exception and
	remove excess range and precision from return value.
	(__exp_finite): Likewise.
	* sysdeps/i386/fpu/e_expf.S (flt_min): New object.
	(MO): New macro.
	(__ieee754_expf): For small results, force underflow exception and
	remove excess range and precision from return value.
	(__expf_finite): Likewise.
	* math/auto-libm-test-in: Add more tests of exp.
	* math/auto-libm-test-out: Regenerated.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b372ccd53..0db4f569e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
 
+	[BZ #18875]
+	[BZ #18961]
+	* sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
+	(MO): New macro.
+	(__ieee754_exp): For small results, force underflow exception and
+	remove excess range and precision from return value.
+	(__exp_finite): Likewise.
+	* sysdeps/i386/fpu/e_expf.S (flt_min): New object.
+	(MO): New macro.
+	(__ieee754_expf): For small results, force underflow exception and
+	remove excess range and precision from return value.
+	(__expf_finite): Likewise.
+	* math/auto-libm-test-in: Add more tests of exp.
+	* math/auto-libm-test-out: Regenerated.
+
 	[BZ #16521]
 	[BZ #18875]
 	* math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for