summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2016-09-30 05:19:05 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2016-09-30 05:19:05 +0530
commit2bf499708daebd9ebb59a6d938a372c7f0ca4dce (patch)
tree4dbc3223026cac8c900817f52a41364af62ff631 /string
parent3459931a1aed87b78a521b0eb931a465c1d101b2 (diff)
downloadglibc-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')
0 files changed, 0 insertions, 0 deletions