aboutsummaryrefslogtreecommitdiff
path: root/pl/math/log1p_2u.c
diff options
context:
space:
mode:
authorJoe Ramsay <Joe.Ramsay@arm.com>2022-12-15 13:27:31 +0000
committerJoe Ramsay <joe.ramsay@arm.com>2022-12-15 13:27:31 +0000
commit1bca1a541cce13c352296acd5dfa16160fc27bc9 (patch)
tree71ea7d7ff77d964ce4dc10b7ba8e293a333a6ef6 /pl/math/log1p_2u.c
parent3c0af1a73df1551a372294d4b05573b2a47f051e (diff)
downloadarm-optimized-routines-1bca1a541cce13c352296acd5dfa16160fc27bc9.tar.gz
pl/math: Auto-generate mathbench and ulp headers
Instead of maintaining three separate lists of routines, which are cumbersome and prone to merge conflicts, we provide a new macro, PL_SIG, which by some preprocessor machinery outputs the lists in the required format (macro formats have been changed very slightly to make the generation simpler). Only routines with simple signatures are handled - binary functions still need mathbench wrappers defined manually. As well, routines with non-standard references (i.e. powi/powk) still need entries and wrappers manually defined.
Diffstat (limited to 'pl/math/log1p_2u.c')
-rw-r--r--pl/math/log1p_2u.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pl/math/log1p_2u.c b/pl/math/log1p_2u.c
index ade5d87..20b4811 100644
--- a/pl/math/log1p_2u.c
+++ b/pl/math/log1p_2u.c
@@ -4,8 +4,9 @@
* SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
*/
-#include "math_config.h"
#include "estrin.h"
+#include "math_config.h"
+#include "pl_sig.h"
#define Ln2Hi 0x1.62e42fefa3800p-1
#define Ln2Lo 0x1.ef35793c76730p-45
@@ -120,3 +121,5 @@ log1p (double x)
double y = fma (Ln2Lo, kd, cm);
return y + fma (Ln2Hi, kd, p);
}
+
+PL_SIG (S, D, 1, log1p, -0.9, 10.0)