This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix lgamma*, log10* and log2* results [BZ #21171]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 16 Feb 2017 16:36:51 +0000
- Subject: Re: [PATCH] Fix lgamma*, log10* and log2* results [BZ #21171]
- Authentication-results: sourceware.org; auth=none
- References: <1487251844-30111-1-git-send-email-tuliom@linux.vnet.ibm.com>
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