[PATCH][BZ #22243] fix log2(0) and log(10) in downward rounding

Szabolcs Nagy szabolcs.nagy@arm.com
Tue Oct 3 17:00:00 GMT 2017


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: log2.diff
Type: text/x-patch
Size: 1251 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20171003/d8303d9c/attachment.bin>


More information about the Libc-alpha mailing list