[libc-commits] [libc] [llvm] [libc][math] Refactor log to header-only shared math (PR #175395)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Sat Jan 10 15:26:04 PST 2026
================
@@ -90,6 +90,8 @@ TEST(LlvmLibcSharedMathTest, AllDouble) {
EXPECT_FP_EQ(0x1p+0, LIBC_NAMESPACE::shared::exp2(0.0));
EXPECT_FP_EQ(0x1p+0, LIBC_NAMESPACE::shared::exp10(0.0));
EXPECT_FP_EQ(0x0p+0, LIBC_NAMESPACE::shared::expm1(0.0));
+ EXPECT_FP_EQ(0x0p+0, LIBC_NAMESPACE::shared::log(1.0));
+ EXPECT_FP_EQ(0x1.62e42fefa39efp-1, LIBC_NAMESPACE::shared::log(2.0));
----------------
bassiounix wrote:
The main goal of this test is to just make sure that the function work, one test is enough.
```suggestion
```
https://github.com/llvm/llvm-project/pull/175395
More information about the libc-commits
mailing list