[libc-commits] [libc] [libc][math] Implement a fast pass for atan2f128 with 1ULP error using DyadicFloat<128>. (PR #133150)
via libc-commits
libc-commits at lists.llvm.org
Mon Mar 31 17:16:05 PDT 2025
================
@@ -106,7 +110,7 @@ constexpr fputil::DoubleDouble ATAN_I[65] = {
// + x_lo * (1 - x_hi^2 + x_hi^4)
// Since p.lo is ~ x^3/3, the relative error from rounding is bounded by:
// |(atan(x) - P(x))/atan(x)| < ulp(x^2) <= 2^(-14-52) = 2^-66.
-DoubleDouble atan_eval(const DoubleDouble &x) {
+[[maybe_unused]] DoubleDouble atan_eval(const DoubleDouble &x) {
----------------
lntue wrote:
Because `atan_eval(const DoubleDouble &)` is not used in `atan2f128`, and (right now) `atan_eval(Float128)` is not used in `atan` and `atan2`.
https://github.com/llvm/llvm-project/pull/133150
More information about the libc-commits
mailing list