[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 22:07:33 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:

not resolved. we only need one test, remove the second one

https://github.com/llvm/llvm-project/pull/175395


More information about the libc-commits mailing list