[libc] Enable double math functions on the GPU (#154857)
This patch adds the `acos` math function to the NVPTX build. It also adds the `sincos` math function to the `math.h` header.
This commit is contained in:
parent
2014890c09
commit
15a192cde5
@ -280,6 +280,7 @@ set(TARGET_LIBC_ENTRYPOINTS
|
|||||||
|
|
||||||
set(TARGET_LIBM_ENTRYPOINTS
|
set(TARGET_LIBM_ENTRYPOINTS
|
||||||
# math.h entrypoints
|
# math.h entrypoints
|
||||||
|
libc.src.math.acos
|
||||||
libc.src.math.acosf
|
libc.src.math.acosf
|
||||||
libc.src.math.acoshf
|
libc.src.math.acoshf
|
||||||
libc.src.math.asin
|
libc.src.math.asin
|
||||||
|
@ -2432,14 +2432,6 @@ functions:
|
|||||||
return_type: double
|
return_type: double
|
||||||
arguments:
|
arguments:
|
||||||
- type: double
|
- type: double
|
||||||
- name: sincosf
|
|
||||||
standards:
|
|
||||||
- gnu
|
|
||||||
return_type: void
|
|
||||||
arguments:
|
|
||||||
- type: float
|
|
||||||
- type: float *
|
|
||||||
- type: float *
|
|
||||||
- name: sinf
|
- name: sinf
|
||||||
standards:
|
standards:
|
||||||
- stdc
|
- stdc
|
||||||
@ -2453,6 +2445,22 @@ functions:
|
|||||||
arguments:
|
arguments:
|
||||||
- type: _Float16
|
- type: _Float16
|
||||||
guard: LIBC_TYPES_HAS_FLOAT16
|
guard: LIBC_TYPES_HAS_FLOAT16
|
||||||
|
- name: sincos
|
||||||
|
standards:
|
||||||
|
- gnu
|
||||||
|
return_type: void
|
||||||
|
arguments:
|
||||||
|
- type: double
|
||||||
|
- type: double *
|
||||||
|
- type: double *
|
||||||
|
- name: sincosf
|
||||||
|
standards:
|
||||||
|
- gnu
|
||||||
|
return_type: void
|
||||||
|
arguments:
|
||||||
|
- type: float
|
||||||
|
- type: float *
|
||||||
|
- type: float *
|
||||||
- name: sinhf
|
- name: sinhf
|
||||||
standards:
|
standards:
|
||||||
- stdc
|
- stdc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user