aboutsummaryrefslogtreecommitdiff
path: root/pl/math/pairwise_horner.h
diff options
context:
space:
mode:
Diffstat (limited to 'pl/math/pairwise_horner.h')
-rw-r--r--pl/math/pairwise_horner.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/pl/math/pairwise_horner.h b/pl/math/pairwise_horner.h
new file mode 100644
index 0000000..6ad98dc
--- /dev/null
+++ b/pl/math/pairwise_horner.h
@@ -0,0 +1,14 @@
+/*
+ * Helper macros for double-precision pairwise 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 "pairwise_horner_wrap.h"