[PATCH] Include s_sin.c in s_sincos.c

Joseph Myers joseph@codesourcery.com
Tue Nov 17 14:59:00 GMT 2015


On Tue, 17 Nov 2015, Siddhesh Poyarekar wrote:

> Include the __sin and __cos functions as local static copies to allow
> deper optimization of the functions.  This change shows an improvement
> of about 17% in the min case and 12.5% in the mean case for the sincos
> microbenchmark on x86_64.

OK.  I imagine there should be more optimization scope from sharing the 
range reduction between sin and cos, though that might be harder given how 
the code is structured.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list