diff options
author | Petr Hosek <phosek@google.com> | 2024-03-15 11:00:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 11:00:19 -0700 |
commit | d717e7f7be279c638faa696f16e1d860ef3cf9ed (patch) | |
tree | b4e95ec744e04b9be2592692f2bdfc4254a4351e | |
parent | 500e05f5a29e8a8008f849788b385cfb0c72e3ef (diff) | |
download | llvm-d717e7f7be279c638faa696f16e1d860ef3cf9ed.zip llvm-d717e7f7be279c638faa696f16e1d860ef3cf9ed.tar.gz llvm-d717e7f7be279c638faa696f16e1d860ef3cf9ed.tar.bz2 |
[libc] Include double_t and float_t in math.h on baremetal (#85028)
This matches other targets.
-rw-r--r-- | libc/config/baremetal/api.td | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/config/baremetal/api.td b/libc/config/baremetal/api.td index 92dfe12..d24c92e 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"]; } |