[libc-commits] [libc] d717e7f - [libc] Include double_t and float_t in math.h on baremetal (#85028)

via libc-commits libc-commits at lists.llvm.org
Fri Mar 15 11:00:22 PDT 2024


Author: Petr Hosek
Date: 2024-03-15T11:00:19-07:00
New Revision: d717e7f7be279c638faa696f16e1d860ef3cf9ed

URL: https://github.com/llvm/llvm-project/commit/d717e7f7be279c638faa696f16e1d860ef3cf9ed
DIFF: https://github.com/llvm/llvm-project/commit/d717e7f7be279c638faa696f16e1d860ef3cf9ed.diff

LOG: [libc] Include double_t and float_t in math.h on baremetal (#85028)

This matches other targets.

Added: 
    

Modified: 
    libc/config/baremetal/api.td

Removed: 
    


################################################################################
diff  --git a/libc/config/baremetal/api.td b/libc/config/baremetal/api.td
index 92dfe1264331e4..d24c92e9e590de 100644
--- a/libc/config/baremetal/api.td
+++ b/libc/config/baremetal/api.td
@@ -52,6 +52,10 @@ def IntTypesAPI : PublicAPI<"inttypes.h"> {
   let Types = ["imaxdiv_t"];
 }
 
+def MathAPI : PublicAPI<"math.h"> {
+  let Types = ["double_t", "float_t"];
+}
+
 def StdIOAPI : PublicAPI<"stdio.h"> {
   let Types = ["size_t"];
 }


        


More information about the libc-commits mailing list