aboutsummaryrefslogtreecommitdiff
path: root/pl/math/horner.h
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 00:57:30 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 00:57:30 +0000
commit0edd6499aaed16bf45de92bb0ad1c729486ce6f4 (patch)
treeb6182e391304fb3a42c51d482dcf671f540f2363 /pl/math/horner.h
parentf2e7d2de0fe4c2bddb59992ba401391f38627a1e (diff)
parent172d24a7ae67ee7bae413d5a8618f1b5edc002be (diff)
downloadarm-optimized-routines-0edd6499aaed16bf45de92bb0ad1c729486ce6f4.tar.gz
Change-Id: I8753ae14d61308952964b5f87c7e48044f60727c
Diffstat (limited to 'pl/math/horner.h')
-rw-r--r--pl/math/horner.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/pl/math/horner.h b/pl/math/horner.h
new file mode 100644
index 0000000..f92ab67
--- /dev/null
+++ b/pl/math/horner.h
@@ -0,0 +1,14 @@
+/*
+ * Helper macros for single-precision Horner polynomial evaluation.
+ *
+ * Copyright (c) 2022-2023, Arm Limited.
+ * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
+ */
+
+#if V_SUPPORTED
+#define FMA v_fma_f64
+#else
+#define FMA fma
+#endif
+
+#include "horner_wrap.h"