[libc-commits] [libc] [llvm] [libc][math] Implement C23 half precision erf function (PR #179251)
via libc-commits
libc-commits at lists.llvm.org
Tue Mar 10 10:00:58 PDT 2026
================
@@ -574,6 +574,110 @@ LIBC_INLINE_VAR constexpr double EXP_M2[128] = {
0x1.568bb722dd593p1, 0x1.593b7d72305bbp1,
};
+// Polynomials approximating erf(x)/x on ( k/8, (k + 1)/8 ) generated by
+// Sollya with: > P = fpminimax(erf(x)/x, [|0, 2, 4, 6, 8, 10, 12, 14|],
+// [|D...|],
+// [k/8, (k + 1)/8]);
+// for k = 0..31.
+constexpr double ERFF_COEFFS[32][8] = {
----------------
lntue wrote:
`LIBC_INLINE_VAR`
https://github.com/llvm/llvm-project/pull/179251
More information about the libc-commits
mailing list