[libc-commits] [libc] [libc][math][c23] Add fabsf16 C23 math function (PR #93567)

via libc-commits libc-commits at lists.llvm.org
Wed May 29 08:52:10 PDT 2024


================
@@ -378,6 +378,7 @@ def StdC : StandardSpec<"stdc"> {
       [
           NamedType<"float_t">,
           NamedType<"double_t">,
+          NamedType<"float16">,
----------------
lntue wrote:

so this is for the header's file name, which technically follows different styling, while the real type that we are going to use is defined with `Float16Type`, which can follow whatever the standards define.  The only issue here is the use of `NamedType` here, which is the problem of our current header gen implementation.  So when we reimplement header gen, we can change this to reflect the correct intention of this part, which is to include the headers in the `llvm-libc-types` folder.

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


More information about the libc-commits mailing list