Skip to content

Commit e6c0143

Browse files
authored
[libc][math][c23] Update newhdrgen for new _Float16 math functions (#113005)
1 parent 11dad2f commit e6c0143

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

libc/newhdrgen/yaml/math.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,13 @@ functions:
206206
return_type: float
207207
arguments:
208208
- type: float
209+
- name: coshf16
210+
standards:
211+
- stdc
212+
return_type: _Float16
213+
arguments:
214+
- type: _Float16
215+
guard: LIBC_TYPES_HAS_FLOAT16
209216
- name: ddivl
210217
standards:
211218
- stdc
@@ -266,6 +273,13 @@ functions:
266273
return_type: float
267274
arguments:
268275
- type: float
276+
- name: exp10m1f16
277+
standards:
278+
- stdc
279+
return_type: _Float16
280+
arguments:
281+
- type: _Float16
282+
guard: LIBC_TYPES_HAS_FLOAT16
269283
- name: exp2
270284
standards:
271285
- stdc
@@ -1557,6 +1571,13 @@ functions:
15571571
return_type: float
15581572
arguments:
15591573
- type: float
1574+
- name: log10f16
1575+
standards:
1576+
- stdc
1577+
return_type: _Float16
1578+
arguments:
1579+
- type: _Float16
1580+
guard: LIBC_TYPES_HAS_FLOAT16
15601581
- name: log1p
15611582
standards:
15621583
- stdc
@@ -1581,6 +1602,13 @@ functions:
15811602
return_type: float
15821603
arguments:
15831604
- type: float
1605+
- name: log2f16
1606+
standards:
1607+
- stdc
1608+
return_type: _Float16
1609+
arguments:
1610+
- type: _Float16
1611+
guard: LIBC_TYPES_HAS_FLOAT16
15841612
- name: logb
15851613
standards:
15861614
- stdc
@@ -1619,6 +1647,13 @@ functions:
16191647
return_type: float
16201648
arguments:
16211649
- type: float
1650+
- name: logf16
1651+
standards:
1652+
- stdc
1653+
return_type: _Float16
1654+
arguments:
1655+
- type: _Float16
1656+
guard: LIBC_TYPES_HAS_FLOAT16
16221657
- name: lrint
16231658
standards:
16241659
- stdc
@@ -2297,6 +2332,13 @@ functions:
22972332
return_type: float
22982333
arguments:
22992334
- type: float
2335+
- name: sinhf16
2336+
standards:
2337+
- stdc
2338+
return_type: _Float16
2339+
arguments:
2340+
- type: _Float16
2341+
guard: LIBC_TYPES_HAS_FLOAT16
23002342
- name: sinpif16
23012343
standards:
23022344
- stdc
@@ -2323,6 +2365,13 @@ functions:
23232365
arguments:
23242366
- type: float128
23252367
guard: LIBC_TYPES_HAS_FLOAT128
2368+
- name: sqrtf16
2369+
standards:
2370+
- stdc
2371+
return_type: _Float16
2372+
arguments:
2373+
- type: _Float16
2374+
guard: LIBC_TYPES_HAS_FLOAT16
23262375
- name: sqrtl
23272376
standards:
23282377
- stdc
@@ -2347,6 +2396,13 @@ functions:
23472396
return_type: float
23482397
arguments:
23492398
- type: float
2399+
- name: tanhf16
2400+
standards:
2401+
- stdc
2402+
return_type: _Float16
2403+
arguments:
2404+
- type: _Float16
2405+
guard: LIBC_TYPES_HAS_FLOAT16
23502406
- name: totalorder
23512407
standards:
23522408
- stdc

0 commit comments

Comments
 (0)