[COMMITTED] PowerPC: fix hypot/hypotf check for -INF
Ryan S. Arnold
ryan.arnold@gmail.com
Fri May 17 13:58:00 GMT 2013
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
More information about the Libc-alpha
mailing list