This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #22243] fix log2(0) and log(10) in downward rounding
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, <nd at arm dot com>
- Date: Tue, 3 Oct 2017 17:43:33 +0000
- Subject: Re: [PATCH][BZ #22243] fix log2(0) and log(10) in downward rounding
- Authentication-results: sourceware.org; auth=none
- References: <59D3C21A.4010704@arm.com>
On Tue, 3 Oct 2017, Szabolcs Nagy wrote:
> 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.
>
> 2017-10-03 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.
OK.
--
Joseph S. Myers
joseph@codesourcery.com