[PATCH] Fix lgamma*, log10* and log2* results [BZ #21171]
Joseph Myers
joseph@codesourcery.com
Thu Feb 16 16:37:00 GMT 2017
On Thu, 16 Feb 2017, Tulio Magno Quites Machado Filho wrote:
> lgamma(-x) should return +Inf and raise divide-by-zero.
> log10(+-0) and log2(+-0) should return -Inf and raise divide-by-zero.
>
> Tested on powerpc, powerpc64, powerpc64le and x86_64.
>
> 2017-02-16 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
>
> [BZ #21171]
> * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
> +Inf and raise divide-by-zero when x is negative.
> * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
> * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
>
> * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Return
> -Inf and raise divide-by-zero when x = +-0.
> * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
> * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
> * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
> * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
> * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
> * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
> * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
OK.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list