[libc-commits] [libc] [libc] Include double_t and float_t in math.h on baremetal (PR #85028)
via libc-commits
libc-commits at lists.llvm.org
Tue Mar 12 23:52:57 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Petr Hosek (petrhosek)
<details>
<summary>Changes</summary>
This matches other targets.
---
Full diff: https://github.com/llvm/llvm-project/pull/85028.diff
1 Files Affected:
- (modified) libc/config/baremetal/api.td (+4)
``````````diff
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",
``````````
</details>
https://github.com/llvm/llvm-project/pull/85028
More information about the libc-commits
mailing list