about summary refs log tree commit diff
path: root/REORG.TODO/sysdeps/x86_64/fpu/multiarch/s_tan.c
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/sysdeps/x86_64/fpu/multiarch/s_tan.c')
-rw-r--r--REORG.TODO/sysdeps/x86_64/fpu/multiarch/s_tan.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/REORG.TODO/sysdeps/x86_64/fpu/multiarch/s_tan.c b/REORG.TODO/sysdeps/x86_64/fpu/multiarch/s_tan.c
new file mode 100644
index 0000000000..25f3bca07e
--- /dev/null
+++ b/REORG.TODO/sysdeps/x86_64/fpu/multiarch/s_tan.c
@@ -0,0 +1,15 @@
+#include <init-arch.h>
+#include <math.h>
+
+extern double __tan_sse2 (double);
+extern double __tan_avx (double);
+extern double __tan_fma4 (double);
+
+libm_ifunc (tan, (HAS_ARCH_FEATURE (FMA4_Usable) ? __tan_fma4 :
+		  HAS_ARCH_FEATURE (AVX_Usable)
+		  ? __tan_avx : __tan_sse2));
+
+#define tan __tan_sse2
+
+
+#include <sysdeps/ieee754/dbl-64/s_tan.c>