This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PowerPC: Trigonometric optimizations for POWER
- From: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Cc: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- Date: Wed, 7 Sep 2011 10:45:59 -0500
- Subject: Re: [PATCH] PowerPC: Trigonometric optimizations for POWER
- References: <4E36F78A.50403@linux.vnet.ibm.com><1312308652.7676.186.camel@localhost.localdomain><4E41727D.6030700@linux.vnet.ibm.com>
On Tue, Aug 9, 2011 at 12:46 PM, Adhemerval Zanella
<azanella@linux.vnet.ibm.com> wrote:
> These POWER optimizations remove most of the FP->INT conversions in
> hypot/hypotf and sinf/cosf on POWER making the computation done with
> FP operations instead. ÂThis eliminates Load-Hit-Store (LHS) stalls,
> increasing performance of hypot/hypotf (by about 100% on POWER7 and
> 12% on POWER6) and sinf/cosf (by 80% on POWER7 and 30% on POWER6).
>
>
> 2011-08-01 ÂAdhemerval Zanella Â<azanella@linux.vnet.ibm.com>
>
> Â Â Â Â* sysdeps/powerpc/fpu/e_hypot.c: New file: hypot optimized for POWER.
> Â Â Â Â* sysdeps/powerpc/fpu/e_hypotf.c: New file: hypotf optimized for POWER.
> Â Â Â Â* sysdeps/powerpc/fpu/e_rem_pio2f.c: New file: optimized for POWER.
> Â Â Â Â* sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
> Â Â Â Â* sysdeps/powerpc/fpu/k_cosf.c: Likewise.
> Â Â Â Â* sysdeps/powerpc/fpu/k_sinf.c: Likewise.
> Â Â Â Â* sysdeps/powerpc/fpu/s_cosf.c: Likewise.
> Â Â Â Â* sysdeps/powerpc/fpu/s_sinf.c: Likewise.
> Â Â Â Â* sysdeps/powerpc/fpu/s_scalbnf.c: Likewise.
> Â Â Â Â* sysdeps/powerpc/fpu/s_float_bitwise.h: new file: bitwise operation over
> Â Â Â Âfloats optimized for POWER7.
Ack!
Please consider committing this patch. I've been running with this
patch on my ibm/2.13 branch for a month.
git commit 0c6ff7937931f1171a6aba3970c4aea7978a1b86
Ryan S. Arnold