This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 7/7] sin/cos slow paths: refactor sincos implementation
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>, nd <nd at arm dot com>
- Date: Thu, 22 Mar 2018 22:37:04 +0000
- Subject: Re: [PATCH 7/7] sin/cos slow paths: refactor sincos implementation
- References: <DB6PR0801MB2053216804EA0B8989EF9F7E83AA0@DB6PR0801MB2053.eurprd08.prod.outlook.com>
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