This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/3] Consolidate sin and cos code for 105414350 <|x|< 281474976710656
- 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: Thu, 17 Dec 2015 21:10:31 +0000
- Subject: Re: [PATCH 2/3] Consolidate sin and cos code for 105414350 <|x|< 281474976710656
- Authentication-results: sourceware.org; auth=none
- References: <1450121051-19759-1-git-send-email-siddhesh dot poyarekar at linaro dot org> <1450121051-19759-3-git-send-email-siddhesh dot poyarekar at linaro dot org>
On Tue, 15 Dec 2015, Siddhesh Poyarekar wrote:
> The sin and cos computation for this range of input is identical
> except for a difference in quadrants by 1. Exploit that fact and the
> common argument reduction to reduce computations for sincos.
>
> Siddhesh
>
> * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
> code to new functions.
> (reduce_sincos_2, do_sincos_2): New functions.
> * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
OK.
--
Joseph S. Myers
joseph@codesourcery.com