Skip to content

Commit d5b7b97

Browse files
authored
[libc][complex] Add complex.yaml in hdrgen. (#119609)
1 parent 6b22326 commit d5b7b97

File tree

5 files changed

+109
-0
lines changed

5 files changed

+109
-0
lines changed

libc/config/linux/aarch64/headers.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set(TARGET_PUBLIC_HEADERS
22
libc.include.assert
3+
libc.include.complex
34
libc.include.ctype
45
libc.include.dlfcn
56
libc.include.elf

libc/config/linux/arm/headers.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
set(TARGET_PUBLIC_HEADERS
2+
libc.include.complex
23
libc.include.ctype
34
libc.include.errno
45
libc.include.fenv

libc/config/linux/riscv/headers.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set(TARGET_PUBLIC_HEADERS
22
libc.include.assert
3+
libc.include.complex
34
libc.include.ctype
45
libc.include.dirent
56
libc.include.dlfcn

libc/config/linux/x86_64/headers.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
set(TARGET_PUBLIC_HEADERS
22
libc.include.assert
3+
libc.include.complex
34
libc.include.ctype
45
libc.include.dirent
56
libc.include.dlfcn

libc/hdrgen/yaml/complex.yaml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
header: complex.h
2+
macros: []
3+
types:
4+
- type_name: cfloat16
5+
- type_name: cfloat128
6+
- type_name: float128
7+
enums: []
8+
objects: []
9+
functions:
10+
- name: cimag
11+
standards:
12+
- stdc
13+
return_type: double
14+
arguments:
15+
- type: _Complex double
16+
- name: cimagf
17+
standards:
18+
- stdc
19+
return_type: float
20+
arguments:
21+
- type: _Complex float
22+
- name: cimagl
23+
standards:
24+
- stdc
25+
return_type: long double
26+
arguments:
27+
- type: _Complex long double
28+
- name: cimagf16
29+
standards:
30+
- stdc
31+
return_type: _Float16
32+
arguments:
33+
- type: cfloat16
34+
guard: LIBC_TYPES_HAS_CFLOAT16
35+
- name: cimagf128
36+
standards:
37+
- stdc
38+
return_type: float128
39+
arguments:
40+
- type: cfloat128
41+
guard: LIBC_TYPES_HAS_CFLOAT128
42+
- name: creal
43+
standards:
44+
- stdc
45+
return_type: double
46+
arguments:
47+
- type: _Complex double
48+
- name: crealf
49+
standards:
50+
- stdc
51+
return_type: float
52+
arguments:
53+
- type: _Complex float
54+
- name: creall
55+
standards:
56+
- stdc
57+
return_type: long double
58+
arguments:
59+
- type: _Complex long double
60+
- name: crealf16
61+
standards:
62+
- stdc
63+
return_type: _Float16
64+
arguments:
65+
- type: cfloat16
66+
guard: LIBC_TYPES_HAS_CFLOAT16
67+
- name: crealf128
68+
standards:
69+
- stdc
70+
return_type: float128
71+
arguments:
72+
- type: cfloat128
73+
guard: LIBC_TYPES_HAS_CFLOAT128
74+
- name: conj
75+
standards:
76+
- stdc
77+
return_type: _Complex double
78+
arguments:
79+
- type: _Complex double
80+
- name: conjf
81+
standards:
82+
- stdc
83+
return_type: _Complex float
84+
arguments:
85+
- type: _Complex float
86+
- name: conjl
87+
standards:
88+
- stdc
89+
return_type: _Complex long double
90+
arguments:
91+
- type: _Complex long double
92+
- name: conjf16
93+
standards:
94+
- stdc
95+
return_type: cfloat16
96+
arguments:
97+
- type: cfloat16
98+
guard: LIBC_TYPES_HAS_CFLOAT16
99+
- name: conjf128
100+
standards:
101+
- stdc
102+
return_type: cfloat128
103+
arguments:
104+
- type: cfloat128
105+
guard: LIBC_TYPES_HAS_CFLOAT128

0 commit comments

Comments
 (0)