[libc-commits] [libc] [libc] Implement roundeven C23 math functions (PR #87678)
via libc-commits
libc-commits at lists.llvm.org
Thu Apr 4 20:32:49 PDT 2024
================
@@ -351,6 +351,12 @@ class MPFRNumber {
return result;
}
+ MPFRNumber roundeven() const {
+ MPFRNumber result(*this);
+ mpfr_roundeven(result.value, value);
----------------
lntue wrote:
Can you add the version guard, and implement a replacement for `mpfr_roundeven` when it's not available, similar to https://github.com/llvm/llvm-project/blob/843cc474faefad1d639f4c44c1cf3ad7dbda76c8/libc/utils/MPFRWrapper/MPFRUtils.cpp#L244
https://github.com/llvm/llvm-project/pull/87678
More information about the libc-commits
mailing list