[libc-commits] [libc] [libc][math] Add missing parenthesis in sollya command (PR #132298)
via libc-commits
libc-commits at lists.llvm.org
Thu Mar 20 16:02:58 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Krishna Pandey (krishna2803)
<details>
<summary>Changes</summary>
This PR adds the missing opening parenthesis for sollya command comment in `libc/src/math/generic/cbrtf.cpp#L28`.
---
Full diff: https://github.com/llvm/llvm-project/pull/132298.diff
1 Files Affected:
- (modified) libc/src/math/generic/cbrtf.cpp (+1-1)
``````````diff
diff --git a/libc/src/math/generic/cbrtf.cpp b/libc/src/math/generic/cbrtf.cpp
index 0abbf6e879421..71b23c4a8c742 100644
--- a/libc/src/math/generic/cbrtf.cpp
+++ b/libc/src/math/generic/cbrtf.cpp
@@ -25,7 +25,7 @@ constexpr double CBRT2[3] = {1.0, 0x1.428a2f98d728bp0, 0x1.965fea53d6e3dp0};
// Degree-7 polynomials approximation of ((1 + x)^(1/3) - 1)/x for 0 <= x <= 1
// generated by Sollya with:
// > for i from 0 to 15 do {
-// P = fpminimax((1 + x)^(1/3) - 1)/x, 6, [|D...|], [i/16, (i + 1)/16]);
+// P = fpminimax(((1 + x)^(1/3) - 1)/x, 6, [|D...|], [i/16, (i + 1)/16]);
// print("{", coeff(P, 0), ",", coeff(P, 1), ",", coeff(P, 2), ",",
// coeff(P, 3), ",", coeff(P, 4), ",", coeff(P, 5), ",",
// coeff(P, 6), "},");
``````````
</details>
https://github.com/llvm/llvm-project/pull/132298
More information about the libc-commits
mailing list