diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2016-09-30 05:19:05 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2016-09-30 05:19:05 +0530 |
commit | 2bf499708daebd9ebb59a6d938a372c7f0ca4dce (patch) | |
tree | 4dbc3223026cac8c900817f52a41364af62ff631 /ChangeLog | |
parent | 3459931a1aed87b78a521b0eb931a465c1d101b2 (diff) | |
download | glibc-2bf499708daebd9ebb59a6d938a372c7f0ca4dce.tar.gz glibc-2bf499708daebd9ebb59a6d938a372c7f0ca4dce.tar.xz glibc-2bf499708daebd9ebb59a6d938a372c7f0ca4dce.zip |
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 7f51edd866..9b0bff1b92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 2016-09-29 Siddhesh Poyarekar <siddhesh@sourceware.org> + * 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. |