aboutsummaryrefslogtreecommitdiff
path: root/math/math_config.h
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2018-08-17 16:51:32 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2018-08-17 16:51:32 +0100
commit5175759c4908dc4a8c105a4b3990d472803bb91b (patch)
tree9e46ebc304b36bbd572d9ce89629242eb322fdff /math/math_config.h
parentb2fc98925d71199f5ce24dd65df810c47f7f9961 (diff)
downloadarm-optimized-routines-5175759c4908dc4a8c105a4b3990d472803bb91b.tar.gz
Ensure HAVE_FAST_FMA is set on AArch64
If math.h doesn't set FP_FAST_FMA correctly, ensure HAVE_FAST_FMA is set on AArch64.
Diffstat (limited to 'math/math_config.h')
-rw-r--r--math/math_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/math/math_config.h b/math/math_config.h
index ce6fac8..ddac41c 100644
--- a/math/math_config.h
+++ b/math/math_config.h
@@ -56,7 +56,7 @@
/* Compiler can inline fma as a single instruction. */
#ifndef HAVE_FAST_FMA
-# ifdef FP_FAST_FMA
+# if defined FP_FAST_FMA || __aarch64__
# define HAVE_FAST_FMA 1
# else
# define HAVE_FAST_FMA 0