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

Sai Hemanth Bheemreddy via libc-commits libc-commits at lists.llvm.org
Tue Jan 20 12:54:23 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)));
----------------
bshreddy wrote:

@AnonMiraj can you clarify what do you mean by adding a test case for float16?
Waiting for clarification on before updating this pull request.

cc: @bassiounix 

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


More information about the libc-commits mailing list