From 432b331c79a379ef92635fc173b4689b6d5b3feb Mon Sep 17 00:00:00 2001 From: Keith Packard via Newlib Date: Sat, 8 Aug 2020 15:34:11 -0700 Subject: 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 --- newlib/libm/common/math_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib') diff --git a/newlib/libm/common/math_config.h b/newlib/libm/common/math_config.h index 1089b0e..df8f8d6 100644 --- a/newlib/libm/common/math_config.h +++ b/newlib/libm/common/math_config.h @@ -72,7 +72,7 @@ /* Compiler can inline fma as a single instruction. */ #ifndef HAVE_FAST_FMA -# if __aarch64__ || __ARM_FEATURE_FMA +# if __aarch64__ || (__ARM_FEATURE_FMA && (__ARM_FP & 8)) # define HAVE_FAST_FMA 1 # else # define HAVE_FAST_FMA 0 -- cgit v1.1