aboutsummaryrefslogtreecommitdiff
path: root/pl/math/log1pf_data.c
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:09:51 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-07-07 05:09:51 +0000
commit9b34328e5d9bbe7a3b6bfc85119b3a8e933f487d (patch)
treeb6182e391304fb3a42c51d482dcf671f540f2363 /pl/math/log1pf_data.c
parent2c59c64458c2a8ca3f8533dc9e9cdfcae90e2c73 (diff)
parent172d24a7ae67ee7bae413d5a8618f1b5edc002be (diff)
downloadarm-optimized-routines-android14-mainline-uwb-release.tar.gz
Change-Id: Ic0a828a30e1ed0394abdeefd06718d6201d2bf87
Diffstat (limited to 'pl/math/log1pf_data.c')
-rw-r--r--pl/math/log1pf_data.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pl/math/log1pf_data.c b/pl/math/log1pf_data.c
new file mode 100644
index 0000000..8c92d57
--- /dev/null
+++ b/pl/math/log1pf_data.c
@@ -0,0 +1,14 @@
+/*
+ * Data used in single-precision log1p(x) function.
+ *
+ * Copyright (c) 2022-2023, Arm Limited.
+ * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
+ */
+#include "math_config.h"
+
+/* Polynomial coefficients generated using floating-point minimax
+ algorithm, see tools/log1pf.sollya for details. */
+const struct log1pf_data __log1pf_data
+ = {.coeffs = {-0x1p-1f, 0x1.5555aap-2f, -0x1.000038p-2f, 0x1.99675cp-3f,
+ -0x1.54ef78p-3f, 0x1.28a1f4p-3f, -0x1.0da91p-3f, 0x1.abcb6p-4f,
+ -0x1.6f0d5ep-5f}};