This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED] PowerPC: fix hypot/hypotf check for -INF
- From: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>
- To: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- Cc: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 17 May 2013 08:58:14 -0500
- Subject: Re: [COMMITTED] PowerPC: fix hypot/hypotf check for -INF
- References: <51962EFA dot 6000007 at linux dot vnet dot ibm dot com>
On Fri, May 17, 2013 at 8:22 AM, Adhemerval Zanella
<azanella@linux.vnet.ibm.com> wrote:
> Testing on POWER4/5/6 I found an issue with recent hypot (-INF, ...) and
> PPC code. The fix is trivial: the return FP->INT transformation should
> return the absolute value of the number so the following comparison does
> not fail for -INF.
>
> ---
>
> 2013-05-17 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
>
> * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
> negative infinity on POWER6 or lower.
> * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
Thanks Adhemerval!
Ryan