[libc-commits] [libc] [libc][math][c23] Implement C23 math function atanpif16 (PR #150400)

via libc-commits libc-commits at lists.llvm.org
Sun Jul 27 04:50:00 PDT 2025


================
@@ -123,6 +123,12 @@ MPFRNumber MPFRNumber::atanh() const {
   return result;
 }
 
+MPFRNumber MPFRNumber::atanpi() const {
+  MPFRNumber result(*this);
+  mpfr_atanpi(result.value, value, mpfr_rounding);
----------------
overmighty wrote:

Only available in MPFR >= 4.2.0. The Buildbots run an older version of MPFR (4.1.0 iirc), so we need a workaround for them. See the implementation of `MPFRNumber::acospi` for example.

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


More information about the libc-commits mailing list