[libc-commits] [libc] [libc][stdfix] Generate stdfix.h header with fixed point precision macros according to N1169 standard, and add fixed point type support detection. (PR #81255)

via libc-commits libc-commits at lists.llvm.org
Fri Feb 9 09:33:13 PST 2024


================
@@ -898,6 +898,15 @@ def StdC : StandardSpec<"stdc"> {
       ]
   >;
 
+  HeaderSpec StdFix = HeaderSpec<
+      "stdfix.h",
+      [],  // macros
----------------
lntue wrote:

Those are for macros generated inside `%%public_api` block, similar to: https://github.com/llvm/llvm-project/blob/main/libc/config/linux/api.td#L30

Since we put all of their generic definitions in `stdfix-macros.h` to be used by internal implementations, they are not needed here.  Otherwise, it will create redefinitions of those macros.

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


More information about the libc-commits mailing list