diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-10-03 17:13:18 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2017-10-04 10:13:56 +0100 |
commit | 8f8f8ef7aba40ef883291e4c4d95a419c3327d70 (patch) | |
tree | 31b06c0b90a6b188783e2037e19c35e8530d3228 /ChangeLog | |
parent | 955774751b71c4bc94029dd541ad9d34634ec995 (diff) | |
download | glibc-8f8f8ef7aba40ef883291e4c4d95a419c3327d70.tar.gz |
[BZ #22243] fix log2(0) and log(10) in downward rounding
On 64bit targets if the SVID compat wrapper is suppressed (e.g. static linking)
then log2(0) and log10(0) returned inf instead of -inf.
[BZ #22243]
* sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
* sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com> + + [BZ #22243] + * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs. + * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise. + 2017-10-03 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with |