This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Include s_sin.c in s_sincos.c
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Siddhesh Poyarekar <siddhesh dot poyarekar at linaro dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 17 Nov 2015 14:59:14 +0000
- Subject: Re: [PATCH] Include s_sin.c in s_sincos.c
- Authentication-results: sourceware.org; auth=none
- References: <20151117111557 dot GA27201 at linaro-laptop dot intra dot reserved-bit dot com>
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