| 1 | #include <init-arch.h> |
|---|---|
| 2 | #include <math.h> |
| 3 | #undef NAN |
| 4 | |
| 5 | extern double __cos_sse2 (double); |
| 6 | extern double __sin_sse2 (double); |
| 7 | extern double __cos_avx (double); |
| 8 | extern double __sin_avx (double); |
| 9 | extern double __cos_fma4 (double); |
| 10 | extern double __sin_fma4 (double); |
| 11 | |
| 12 | libm_ifunc (__cos, (HAS_ARCH_FEATURE (FMA4_Usable) ? __cos_fma4 : |
| 13 | HAS_ARCH_FEATURE (AVX_Usable) |
| 14 | ? __cos_avx : __cos_sse2)); |
| 15 | weak_alias (__cos, cos) |
| 16 | |
| 17 | libm_ifunc (__sin, (HAS_ARCH_FEATURE (FMA4_Usable) ? __sin_fma4 : |
| 18 | HAS_ARCH_FEATURE (AVX_Usable) |
| 19 | ? __sin_avx : __sin_sse2)); |
| 20 | weak_alias (__sin, sin) |
| 21 | |
| 22 | #define __cos __cos_sse2 |
| 23 | #define __sin __sin_sse2 |
| 24 | |
| 25 | |
| 26 | #include <sysdeps/ieee754/dbl-64/s_sin.c> |
| 27 |