[libc-commits] [libc] [libc][math] Qualify floor functions to constexpr (PR #192791)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Sat Apr 18 09:26:52 PDT 2026
================
@@ -19,13 +19,18 @@ static_assert(0.0 == LIBC_NAMESPACE::shared::ceil(0.0));
static_assert(0.0 == LIBC_NAMESPACE::shared::log(1.0));
static_assert(0.0 == LIBC_NAMESPACE::shared::copysign(0.0, 0.0));
+static_assert(1.0 == LIBC_NAMESPACE::shared::floor(1.2));
+
----------------
bassiounix wrote:
reorder the functions to maintain alphabetical order
```suggestion
static_assert(0.0 == LIBC_NAMESPACE::shared::ceil(0.0));
static_assert(1.0 == LIBC_NAMESPACE::shared::floor(1.2));
static_assert(0.0 == LIBC_NAMESPACE::shared::log(1.0));
static_assert(0.0 == LIBC_NAMESPACE::shared::copysign(0.0, 0.0));
```
https://github.com/llvm/llvm-project/pull/192791
More information about the libc-commits
mailing list