This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/3] Consolidate sin and cos code for 105414350 <|x|< 281474976710656


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]