Skip to content

Commit e1c6035

Browse files
committed
fixup! [libc][math][c23] Add fabsf16 C23 math function
Fix missing include in generated math.h public header.
1 parent 04c701c commit e1c6035

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

libc/config/linux/api.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def IntTypesAPI : PublicAPI<"inttypes.h"> {
6060
}
6161

6262
def MathAPI : PublicAPI<"math.h"> {
63-
let Types = ["double_t", "float_t", "float128"];
63+
let Types = ["double_t", "float_t", "float16", "float128"];
6464
}
6565

6666
def FenvAPI: PublicAPI<"fenv.h"> {

libc/include/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ add_gen_header(
114114
.llvm-libc-macros.math_macros
115115
.llvm-libc-types.double_t
116116
.llvm-libc-types.float_t
117+
.llvm-libc-types.float16
117118
.llvm-libc-types.float128
118119
)
119120

libc/spec/stdc.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def StdC : StandardSpec<"stdc"> {
378378
[
379379
NamedType<"float_t">,
380380
NamedType<"double_t">,
381-
Float16Type,
381+
NamedType<"float16">,
382382
NamedType<"float128">,
383383
],
384384
[], // Enumerations

0 commit comments

Comments
 (0)