Skip to content

Commit c76f029

Browse files
committed
[libc] Removed __LIBC_CONST_ATTR attribute and updated math.yaml with the new math functions
- deleted attribute from fabs function - added math functions from llvm#98972
1 parent 6c09a9b commit c76f029

File tree

1 file changed

+62
-2
lines changed

1 file changed

+62
-2
lines changed

libc/newhdrgen/yaml/math.yaml

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ functions:
6464
return_type: double
6565
arguments:
6666
- type: double
67-
attributes:
68-
- __LIBC_CONST_ATTR
6967
- name: fabsf
7068
standards:
7169
- stdc
@@ -364,6 +362,20 @@ functions:
364362
arguments:
365363
- type: double
366364
- type: double
365+
- name: fmull
366+
standards:
367+
- stdc
368+
return_type: float
369+
arguments:
370+
- type: long double
371+
- type: long double
372+
- name: dmull
373+
standards:
374+
- stdc
375+
return_type: double
376+
arguments:
377+
- type: long double
378+
- type: long double
367379
- name: frexp
368380
standards:
369381
- stdc
@@ -1323,6 +1335,30 @@ functions:
13231335
- type: long double
13241336
- type: long double
13251337
guard: LIBC_TYPES_HAS_FLOAT16
1338+
- name: f16mul
1339+
standards:
1340+
- llvm_libc_ext
1341+
return_type: _Float16
1342+
arguments:
1343+
- type: double
1344+
- type: double
1345+
guard: LIBC_TYPES_HAS_FLOAT16
1346+
- name: f16mulf
1347+
standards:
1348+
- llvm_libc_ext
1349+
return_type: _Float16
1350+
arguments:
1351+
- type: float
1352+
- type: float
1353+
guard: LIBC_TYPES_HAS_FLOAT16
1354+
- name: f16mull
1355+
standards:
1356+
- llvm_libc_ext
1357+
return_type: _Float16
1358+
arguments:
1359+
- type: long double
1360+
- type: long double
1361+
guard: LIBC_TYPES_HAS_FLOAT16
13261362
- name: f16sqrt
13271363
standards:
13281364
- llvm_libc_ext
@@ -1756,6 +1792,14 @@ functions:
17561792
- type: float128
17571793
- type: float128
17581794
guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
1795+
- name: f16mulf128
1796+
standards:
1797+
- stdc
1798+
return_type: _Float16
1799+
arguments:
1800+
- type: float128
1801+
- type: float128
1802+
guard: LIBC_TYPES_HAS_FLOAT16_AND_FLOAT128
17591803
- name: f16sqrtf128
17601804
standards:
17611805
- llvm_libc_ext
@@ -1896,6 +1940,22 @@ functions:
18961940
- type: float128
18971941
- type: float128
18981942
guard: LIBC_TYPES_HAS_FLOAT128
1943+
- name: fmulf128
1944+
standards:
1945+
- llvm_libc_ext
1946+
return_type: float
1947+
arguments:
1948+
- type: float128
1949+
- type: float128
1950+
guard: LIBC_TYPES_HAS_FLOAT128
1951+
- name: dmulf128
1952+
standards:
1953+
- llvm_libc_ext
1954+
return_type: double
1955+
arguments:
1956+
- type: float128
1957+
- type: float128
1958+
guard: LIBC_TYPES_HAS_FLOAT128
18991959
- name: frexpf128
19001960
standards:
19011961
- stdc

0 commit comments

Comments
 (0)