libm: ARM without HW double does not have fast FMA
32-bit ARM processors with HW float (but not HW double) may define __ARM_FEATURE_FMA, but that only means they have fast FMA for 32-bit floats. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
73b02710ec
commit
432b331c79
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
/* Compiler can inline fma as a single instruction. */
|
/* Compiler can inline fma as a single instruction. */
|
||||||
#ifndef HAVE_FAST_FMA
|
#ifndef HAVE_FAST_FMA
|
||||||
# if __aarch64__ || __ARM_FEATURE_FMA
|
# if __aarch64__ || (__ARM_FEATURE_FMA && (__ARM_FP & 8))
|
||||||
# define HAVE_FAST_FMA 1
|
# define HAVE_FAST_FMA 1
|
||||||
# else
|
# else
|
||||||
# define HAVE_FAST_FMA 0
|
# define HAVE_FAST_FMA 0
|
||||||
|
|
Loading…
Reference in New Issue