[PATCH 7/7] sin/cos slow paths: refactor sincos implementation

Joseph Myers joseph@codesourcery.com
Thu Mar 22 22:37:00 GMT 2018


On Wed, 21 Mar 2018, Wilco Dijkstra wrote:

> Refactor the sincos implementation - rather than rely on odd partial inlining
> of preprocessed portions from sin and cos, explicitly write out the cases.
> This makes sincos much easier to maintain and provides an additional 16-20%
> speedup between 0 and 2^27.  The overall speedup of sincos is 48% over this range.
> Between 0 and PI it is 66% faster.

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list