[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
================
@@ -47,6 +54,8 @@ static_assert(0.0f16 == LIBC_NAMESPACE::shared::copysignf16(0.0f16, 0.0f16));
static_assert(0.0L == LIBC_NAMESPACE::shared::ceill(0.0L));
static_assert(0.0L == LIBC_NAMESPACE::shared::copysignl(0.0L, 0.0L));
+static_assert(0.0L == LIBC_NAMESPACE::shared::floorl(0.0L));
----------------
bassiounix wrote:
```suggestion
static_assert(0.0L == LIBC_NAMESPACE::shared::ceill(0.0L));
static_assert(0.0L == LIBC_NAMESPACE::shared::copysignl(0.0L, 0.0L));
static_assert(0.0L == LIBC_NAMESPACE::shared::floorl(0.0L));
```
https://github.com/llvm/llvm-project/pull/192791
More information about the libc-commits
mailing list