[libc-commits] [libc] [llvm] [libc][math] Refactor llogbl to be header-only and constexpr (PR #175376)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Mon Feb 9 06:43:23 PST 2026
================
@@ -139,6 +139,7 @@ TEST(LlvmLibcSharedMathTest, AllDouble) {
EXPECT_FP_EQ(0x0p+0, LIBC_NAMESPACE::shared::log2(1.0));
EXPECT_FP_EQ(0.0, LIBC_NAMESPACE::shared::sin(0.0));
EXPECT_FP_EQ(0x0p+0, LIBC_NAMESPACE::shared::sqrt(0.0));
+ EXPECT_EQ(0L, LIBC_NAMESPACE::shared::llogb(1.0));
----------------
bassiounix wrote:
You are repeating yourself, this function already exists
```suggestion
```
https://github.com/llvm/llvm-project/pull/175376
More information about the libc-commits
mailing list