Skip to content

[libc][complex] Add complex.yaml in hdrgen. #119609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc/config/linux/aarch64/headers.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set(TARGET_PUBLIC_HEADERS
libc.include.assert
libc.include.complex
libc.include.ctype
libc.include.dlfcn
libc.include.elf
Expand Down
1 change: 1 addition & 0 deletions libc/config/linux/arm/headers.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set(TARGET_PUBLIC_HEADERS
libc.include.complex
libc.include.ctype
libc.include.errno
libc.include.fenv
Expand Down
1 change: 1 addition & 0 deletions libc/config/linux/riscv/headers.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set(TARGET_PUBLIC_HEADERS
libc.include.assert
libc.include.complex
libc.include.ctype
libc.include.dirent
libc.include.dlfcn
Expand Down
1 change: 1 addition & 0 deletions libc/config/linux/x86_64/headers.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set(TARGET_PUBLIC_HEADERS
libc.include.assert
libc.include.complex
libc.include.ctype
libc.include.dirent
libc.include.dlfcn
Expand Down
105 changes: 105 additions & 0 deletions libc/hdrgen/yaml/complex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
header: complex.h
macros: []
types:
- type_name: cfloat16
- type_name: cfloat128
- type_name: float128
enums: []
objects: []
functions:
- name: cimag
standards:
- stdc
return_type: double
arguments:
- type: _Complex double
- name: cimagf
standards:
- stdc
return_type: float
arguments:
- type: _Complex float
- name: cimagl
standards:
- stdc
return_type: long double
arguments:
- type: _Complex long double
- name: cimagf16
standards:
- stdc
return_type: _Float16
arguments:
- type: cfloat16
guard: LIBC_TYPES_HAS_CFLOAT16
- name: cimagf128
standards:
- stdc
return_type: float128
arguments:
- type: cfloat128
guard: LIBC_TYPES_HAS_CFLOAT128
- name: creal
standards:
- stdc
return_type: double
arguments:
- type: _Complex double
- name: crealf
standards:
- stdc
return_type: float
arguments:
- type: _Complex float
- name: creall
standards:
- stdc
return_type: long double
arguments:
- type: _Complex long double
- name: crealf16
standards:
- stdc
return_type: _Float16
arguments:
- type: cfloat16
guard: LIBC_TYPES_HAS_CFLOAT16
- name: crealf128
standards:
- stdc
return_type: float128
arguments:
- type: cfloat128
guard: LIBC_TYPES_HAS_CFLOAT128
- name: conj
standards:
- stdc
return_type: _Complex double
arguments:
- type: _Complex double
- name: conjf
standards:
- stdc
return_type: _Complex float
arguments:
- type: _Complex float
- name: conjl
standards:
- stdc
return_type: _Complex long double
arguments:
- type: _Complex long double
- name: conjf16
standards:
- stdc
return_type: cfloat16
arguments:
- type: cfloat16
guard: LIBC_TYPES_HAS_CFLOAT16
- name: conjf128
standards:
- stdc
return_type: cfloat128
arguments:
- type: cfloat128
guard: LIBC_TYPES_HAS_CFLOAT128
Loading