[libc-commits] [libc] [libc] Include double_t and float_t in math.h on baremetal (PR #85028)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Fri Mar 15 11:00:06 PDT 2024
https://github.com/petrhosek updated https://github.com/llvm/llvm-project/pull/85028
>From 74673fca3e0552a1d92c4140ca865afe57b652f4 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Tue, 12 Mar 2024 23:50:45 -0700
Subject: [PATCH] [libc] Include double_t and float_t in math.h on baremetal
This matches other targets.
---
libc/config/baremetal/api.td | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libc/config/baremetal/api.td b/libc/config/baremetal/api.td
index 80d0e0ba22ca51..e6746d0c5b4c7f 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 StdlibAPI : PublicAPI<"stdlib.h"> {
let Types = [
"div_t",
More information about the libc-commits
mailing list