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] Use generic sinf/cosf in lgammaf_r


On Tue, 14 Aug 2018, Wilco Dijkstra wrote:

> The internal functions __kernel_sinf and __kernel_cosf are used only by
> lgammaf_r.  Removing the internal functions and using the generic sinf
> and cosf is better overall.  Benchmarking on Cortex-A72 shows the generic
> sinf and cosf are 1.4x and 2.3x faster in the range |x| < PI/4, and 0.66x
> and 1.1x for |x| < PI/2, so it should make lgammaf_r faster on average.

I'd expect the sysdeps/powerpc/fpu versions of k_cosf.c and k_sinf.c to be 
removed as well, since this patch makes them useless.

-- 
Joseph S. Myers
joseph@codesourcery.com


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