Speedup tanf range reduction
authorWilco Dijkstra <wdijkstr@arm.com>
Thu, 23 Aug 2018 11:38:16 +0000 (12:38 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Thu, 23 Aug 2018 11:38:16 +0000 (12:38 +0100)
commit900fb446eb8172c54cdaed85107bc783ee50673a
tree80ecbb5c9245698a5b5c70b1070f621e77834dec
parent561b0bec4448f0302cb4915bf67c919bde4a1c57
Speedup tanf range reduction

Speedup tanf range reduction by using the new sincosf range
reduction algorithm.  Overall code quality is improved due to
inlining, so there is a speedup even if no range reduction is
required.

tanf throughput gains on Cortex-A72:
* |x| < M_PI_4  : 1.1x
* |x| < M_PI_2  : 1.2x
* |x| < 2 * M_PI: 1.5x
* |x| < 120.0   : 1.6x
* |x| < Inf     : 12.1x

* sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
ChangeLog
sysdeps/ieee754/flt-32/s_tanf.c