]> git.ipfire.org Git - thirdparty/glibc.git/commit
[PATCH 4/7] sin/cos slow paths: remove slow paths from huge range reduction
authorWilco Dijkstra <wdijkstr@arm.com>
Tue, 3 Apr 2018 15:41:36 +0000 (16:41 +0100)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:26:05 +0000 (17:26 -0700)
commitd4d26acd8a65fe6b641dbd448b734ad23b3242ad
treeb0366bbcfdaa271ffa28ece6fa60b8882a7bfe55
parent76f9784421e988df5a05876a7f256716dd7e412d
[PATCH 4/7] sin/cos slow paths: remove slow paths from huge range reduction

For huge inputs use the improved do_sincos function as well.  Now no cases use
the correction factor returned by do_sin, do_cos and TAYLOR_SIN, so remove it.

* sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
(do_cos): Remove corp parameter and calculations.
(do_sin): Likewise.
(do_sincos): Remove cor variable.
(__sin): Use do_sincos for huge inputs.
(__cos): Likewise.
* sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
(reduce_and_compute_sincos): Remove unused function.
sysdeps/ieee754/dbl-64/s_sin.c
sysdeps/ieee754/dbl-64/s_sincos.c