[libc-commits] [libc] [libc][math][c23] add entry points and tests for fsqrt (PR #99669)

via libc-commits libc-commits at lists.llvm.org
Sat Jul 20 11:28:36 PDT 2024


================
@@ -739,6 +739,10 @@ def StdC : StandardSpec<"stdc"> {
 
           GuardedFunctionSpec<"f16mulf128", RetValSpec<Float16Type>, [ArgSpec<Float128Type>, ArgSpec<Float128Type>], "LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128">,
 
+          FunctionSpec<"fsqrt", RetValSpec<FloatType>, [ArgSpec<DoubleType>]>,
+          FunctionSpec<"fsqrtl", RetValSpec<FloatType>, [ArgSpec<LongDoubleType>]>,
+	  GuardedFunctionSpec<"f16sqrtf128", RetValSpec<FloatType>, [ArgSpec<Float128Type>]>,
----------------
lntue wrote:

`fsqrtf128`, and the header guard is missing.

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


More information about the libc-commits mailing list