From 2bf499708daebd9ebb59a6d938a372c7f0ca4dce Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 30 Sep 2016 05:19:05 +0530 Subject: Use copysign instead of ternary for some sin/cos input ranges These are remaining cases where we can deduce and conclude that the sign of the result should be the same as the sign of the input being checked. For example, for sin(x), the sign of the result is the same as the result itself for x < pi. Likewise, for sine values where x after range reduction falls into this range and its sign is preserved. * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign instead of ternary condition. (do_sincos_2): Likewise. (__sin): Likewise. (__cos): Likewise. (slow): Likewise. (sloww): Likewise. (sloww1): Likewise. (bsloww): Likewise. (bsloww1): Likewise. --- ChangeLog | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 7f51edd866..9b0bff1b92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 2016-09-29 Siddhesh Poyarekar + * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign + instead of ternary condition. + (do_sincos_2): Likewise. + (__sin): Likewise. + (__cos): Likewise. + (slow): Likewise. + (sloww): Likewise. + (sloww1): Likewise. + (bsloww): Likewise. + (bsloww1): Likewise. + * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign instead of ternary condition. (do_sin_slow): Likewise. -- cgit 1.4.1