This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/3] Consolidate range reduction in sincos for 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:06:54 +0000
- Subject: Re: [PATCH 1/3] Consolidate range reduction in sincos for x > 281474976710656
- Authentication-results: sourceware.org; auth=none
- References: <1450121051-19759-1-git-send-email-siddhesh dot poyarekar at linaro dot org> <1450121051-19759-2-git-send-email-siddhesh dot poyarekar at linaro dot org>
On Tue, 15 Dec 2015, Siddhesh Poyarekar wrote:
> Range reduction needs to be done only once for sin and cos, so copy
> over all of the relevant functions (__sin, __cos, reduce_and_compute)
> and consolidate common code.
>
> Siddhesh
>
> * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
> common code for sincos.
> (__cos) [!IN_SINCOS]: Likewise.
> * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
> New function.
> (__sincos): Use it.
OK.
--
Joseph S. Myers
joseph@codesourcery.com