]> sourceware.org Git - glibc.git/commit
[BZ #22243] fix log2(0) and log(10) in downward rounding
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 3 Oct 2017 16:13:18 +0000 (17:13 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 4 Oct 2017 09:13:56 +0000 (10:13 +0100)
commit8f8f8ef7aba40ef883291e4c4d95a419c3327d70
tree31b06c0b90a6b188783e2037e19c35e8530d3228
parent955774751b71c4bc94029dd541ad9d34634ec995
[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.
ChangeLog
sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c
sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c
This page took 0.040924 seconds and 5 git commands to generate.