[libc-commits] [libc] [llvm] [libc][math] Refactor ffmal to Header Only. (PR #179069)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Sat Feb 7 06:12:04 PST 2026
================
@@ -94,6 +94,7 @@ TEST(LlvmLibcSharedMathTest, AllFloat) {
EXPECT_FP_EQ(0x1p+0f, LIBC_NAMESPACE::shared::expf(0.0f));
EXPECT_FP_EQ(0x1p+0f, LIBC_NAMESPACE::shared::exp2f(0.0f));
EXPECT_FP_EQ(0x0p+0f, LIBC_NAMESPACE::shared::expm1f(0.0f));
+ EXPECT_FP_EQ(10.0f, LIBC_NAMESPACE::shared::ffmal(2.0L, 3.0, 4.0L));
----------------
bassiounix wrote:
> done ... Also in which section to add depends on arg data type or return type ?
Depends on the outlier, in this case the outlier is long double, so this is where it goes.
If it's not clear to you it's fine, don't worry about it :)
https://github.com/llvm/llvm-project/pull/179069
More information about the libc-commits
mailing list