[libc-commits] [libc] [llvm] [libc][math] Refactor f16sqrtf128 to Header Only. (PR #175829)

Muhammad Bassiouni via libc-commits libc-commits at lists.llvm.org
Fri Jan 23 11:46:26 PST 2026


================
@@ -103,6 +103,8 @@ TEST(LlvmLibcSharedMathTest, AllFloat128) {
 
   EXPECT_FP_EQ(float128(0x0p+0),
                LIBC_NAMESPACE::shared::atan2f128(float128(0.0), float128(0.0)));
+  EXPECT_FP_EQ(float16(2.0),
+               LIBC_NAMESPACE::shared::f16sqrtf128(float128(4.0)));
----------------
bassiounix wrote:

Please add a guard macro to this function specifically, float16 is not available on all targets.

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


More information about the libc-commits mailing list