mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 13:50:06 +00:00
b7848899a5
GCC added support for -mfma4 in version 4.5. Thus the configure tests for this support are obsolete, and this patch removes them. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by this patch). * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure test. * sysdeps/i386/configure: Regenerated. * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure test. * sysdeps/x86_64/configure: Regenerated. * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]: Make code unconditional. * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]: Likewise. * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]: Likewise. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make code unconditional. * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make code unconditional. [!HAVE_FMA4_SUPPORT]: Remove conditional code. * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
27 lines
708 B
C
27 lines
708 B
C
#include <init-arch.h>
|
|
#include <math.h>
|
|
#include <math_private.h>
|
|
|
|
extern double __ieee754_acos_sse2 (double);
|
|
extern double __ieee754_asin_sse2 (double);
|
|
extern double __ieee754_acos_fma4 (double);
|
|
extern double __ieee754_asin_fma4 (double);
|
|
|
|
libm_ifunc (__ieee754_acos,
|
|
HAS_ARCH_FEATURE (FMA4_Usable)
|
|
? __ieee754_acos_fma4
|
|
: __ieee754_acos_sse2);
|
|
strong_alias (__ieee754_acos, __acos_finite)
|
|
|
|
libm_ifunc (__ieee754_asin,
|
|
HAS_ARCH_FEATURE (FMA4_Usable)
|
|
? __ieee754_asin_fma4
|
|
: __ieee754_asin_sse2);
|
|
strong_alias (__ieee754_asin, __asin_finite)
|
|
|
|
#define __ieee754_acos __ieee754_acos_sse2
|
|
#define __ieee754_asin __ieee754_asin_sse2
|
|
|
|
|
|
#include <sysdeps/ieee754/dbl-64/e_asin.c>
|