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 3/3] Consolidate sincos computation for 2.426265 < |x| < 105414350


On Tue, 15 Dec 2015, Siddhesh Poyarekar wrote:

> Like the previous change, exploit the fact that computation for sin
> and cos is identical except that it is apart by a quadrant.  Also
> remove csloww, csloww1 and csloww2 since they can easily be expressed
> in terms of sloww, sloww1 and sloww2.
> 
> Siddhesh
> 
> 	* sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
> 	Remove functions.
> 	(sloww, sloww1): Accept argument to offset quadrant.
> 	(sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
> 	quadrant.
> 	(__sin, __cos): Consolidate common code into new functions.
> 	(reduce_sincos_1, do_sincos_1): 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]