Make the quadrant shift K a bool in do_sincos_* functions
commitb8b7e5e644363f9ab6ea6df5d4a44389d28e5450
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 5 Oct 2016 19:03:54 +0000 (6 00:33 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 5 Oct 2016 19:03:54 +0000 (6 00:33 +0530)
tree8689ddda02d6d233a2f24b87c61942358847c546
parent8028566ed9418ffa5070c60b5a477ed45653469b
Make the quadrant shift K a bool in do_sincos_* functions

The do_sincos_* functions are helpers to compute sin/cos, where they
get cosine by computing sine for the next quadrant.  This is decided
with the value of K passed to it, which is the amount by which to
shift the quadrant.  Since we will only need the shift to be 0 or 1,
we make K a bool to make that explicit.

* sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
SHIFT_QUADRANT and make it bool.
(do_sincos_2): Likewise.
(sloww): Likewise.
(sloww1): Likewise.
(__sin): Adjust calls to do_sincos_1 and do_sincos_2.
(__cos): Likewise.
ChangeLog
sysdeps/ieee754/dbl-64/s_sin.c