Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard via Newlib <newlib@sourceware.org>2020-08-09 01:34:11 +0300
committerCorinna Vinschen <corinna@vinschen.de>2020-08-10 22:01:46 +0300
commit432b331c79a379ef92635fc173b4689b6d5b3feb (patch)
treef5d636ebc918ad57daf157de78f84e0babe7167d
parent73b02710ecbea5ace2508527fbc4f939c87069cd (diff)
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>
-rw-r--r--newlib/libm/common/math_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/common/math_config.h b/newlib/libm/common/math_config.h
index 1089b0ec6..df8f8d6e4 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