diff options
author | Keith Packard via Newlib <newlib@sourceware.org> | 2020-08-08 15:34:11 -0700 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-08-10 21:01:46 +0200 |
commit | 432b331c79a379ef92635fc173b4689b6d5b3feb (patch) | |
tree | f5d636ebc918ad57daf157de78f84e0babe7167d /newlib/libm | |
parent | 73b02710ecbea5ace2508527fbc4f939c87069cd (diff) | |
download | newlib-432b331c79a379ef92635fc173b4689b6d5b3feb.zip newlib-432b331c79a379ef92635fc173b4689b6d5b3feb.tar.gz newlib-432b331c79a379ef92635fc173b4689b6d5b3feb.tar.bz2 |
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>
Diffstat (limited to 'newlib/libm')
-rw-r--r-- | newlib/libm/common/math_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |