[libc-commits] [libc] [libc][math][c23] Add atanhf16 C23 math function. (PR #132612)

via libc-commits libc-commits at lists.llvm.org
Tue Apr 15 05:46:59 PDT 2025


================
@@ -59,6 +95,42 @@ const double ONE_OVER_F[128] = {
     0x1.05197f7d73404p-1, 0x1.0410410410410p-1, 0x1.03091b51f5e1ap-1,
     0x1.0204081020408p-1, 0x1.0101010101010p-1};
 
+// Lookup table for (1/f) where f = 1 + n*2^(-7), n = 0..127,
+// computed and stored as float precision constants.
+const float LOG_F_FLOAT[128] = {
----------------
overmighty wrote:

Same comment as above: would be nice to add Sollya commands to generate this lookup table for easy reproducibility.

https://github.com/llvm/llvm-project/pull/132612


More information about the libc-commits mailing list