[libc-commits] [libc] [libc][math] Add bit-rounding roundf implementation (PR #221648)
via libc-commits
libc-commits at lists.llvm.org
Mon Sep 7 06:01:50 PDT 2026
================
@@ -104,6 +104,31 @@ LIBC_INLINE constexpr T floor(T x) {
}
}
+LIBC_INLINE constexpr float round(float x) {
----------------
lntue wrote:
Doesn't look like this is float explicit. You can use it to replace the current templated `round` function below. Also add extra comments similar to the current implementation.
https://github.com/llvm/llvm-project/pull/221648
More information about the libc-commits
mailing list