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 /string/bits | |
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 'string/bits')
0 files changed, 0 insertions, 0 deletions