mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-28 23:34:53 +03:00
It is enabled through math-use-builtins-fma.h if glibc is built for VPFv4 (__ARM_FEATURE_FMA predefined by GCC), or through IFUNC (testing HWCAP_ARM_VFPv4) otherwise. Checked on arm-linux-gnueabihf. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
12 lines
283 B
C
12 lines
283 B
C
#if defined __ARM_FEATURE_FMA && __ARM_FP & 0x4
|
|
# define USE_FMA_BUILTIN 1
|
|
#endif
|
|
#if defined __ARM_FEATURE_FMA && __ARM_FP & 0x2
|
|
# define USE_FMAF_BUILTIN 1
|
|
#else
|
|
# define USE_FMA_BUILTIN 0
|
|
# define USE_FMAF_BUILTIN 0
|
|
#endif
|
|
#define USE_FMAL_BUILTIN 0
|
|
#define USE_FMAF128_BUILTIN 0
|