diff options
Diffstat (limited to 'libc/sysdeps/x86_64/fpu/multiarch/s_atan.c')
-rw-r--r-- | libc/sysdeps/x86_64/fpu/multiarch/s_atan.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libc/sysdeps/x86_64/fpu/multiarch/s_atan.c b/libc/sysdeps/x86_64/fpu/multiarch/s_atan.c new file mode 100644 index 000000000..ffc4a56fa --- /dev/null +++ b/libc/sysdeps/x86_64/fpu/multiarch/s_atan.c @@ -0,0 +1,14 @@ +#ifdef HAVE_FMA4_SUPPORT +# include <init-arch.h> +# include <math.h> + +extern double __atan_sse2 (double); +extern double __atan_fma4 (double); + +libm_ifunc (atan, HAS_FMA4 ? __atan_fma4 : __atan_sse2); + +# define atan __atan_sse2 +#endif + + +#include <sysdeps/ieee754/dbl-64/s_atan.c> |