This website requires JavaScript.
Explore
Help
Sign In
qiurui
/
glibc
mirror of
git://sourceware.org/git/glibc.git
Watch
1
Star
0
Fork
You've already forked glibc
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
126c4e3f80
glibc
/
sysdeps
/
ieee754
/
flt-32
/
k_sinf.c
2 lines
19 B
C
Raw
Normal View
History
Unescape
Escape
Use generic sinf/cosf in lgammaf_r The internal functions __kernel_sinf and __kernel_cosf are used only by lgammaf_r. Removing the internal functions and using the generic sinf and cosf is better overall. Benchmarking on Cortex-A72 shows the generic sinf and cosf are 1.4x and 2.3x faster in the range |x| < PI/4, and 0.66x and 1.1x for |x| < PI/2, so it should make lgammaf_r faster on average. GLIBC regression tests pass on AArch64. * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf. * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code. * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
2018-08-15 15:01:21 +00:00
/* Not needed. */