From 01189b083b8ce54fc568fd2ab0dd433d869ede0e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 5 Nov 2015 21:56:31 +0000 Subject: Fix i386/x86_64 log* (1) zero sign for -ffinite-math-only (bug 19213). For the -ffinite-math-only versions of various x86_64 and x86 log* functions, a zero result from log* (1) is returned with incorrect sign in round-downward mode. This patch fixes this in a similar way to the previous fixes for the non-*_finite versions of the functions. Tested for x86_64 and x86 (including an i586 build), together with a patch that will be applied separately to enable the main libm-test.inc tests for the finite-math-only functions. [BZ #19213] * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always returned for argument 1. * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise. * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise. * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise. * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise. * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise. * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise. --- ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 9c78a11722..95dae4bafa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2015-11-05 Joseph Myers + [BZ #19213] + * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always + returned for argument 1. + * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise. + * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise. + * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise. + * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise. + * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise. + * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise. + [BZ #19211] * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC || __USE_XOPEN], not if [!__USE_ISOC99]. -- cgit 1.4.1