This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PowerPC: Trigonometric optimizations for POWER


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]