mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[libc] Enable float math functions on the GPU (#151841)
This patch adds the `tanpif` math functions to the GPU build. It also adds the `cospif` and `sinpif` math functions to the `math.h` header.
This commit is contained in:
@@ -283,6 +283,12 @@ functions:
|
||||
return_type: float
|
||||
arguments:
|
||||
- type: float
|
||||
- name: cospif
|
||||
standards:
|
||||
- stdc
|
||||
return_type: float
|
||||
arguments:
|
||||
- type: float
|
||||
- name: cospif16
|
||||
standards:
|
||||
- stdc
|
||||
@@ -2453,6 +2459,12 @@ functions:
|
||||
arguments:
|
||||
- type: _Float16
|
||||
guard: LIBC_TYPES_HAS_FLOAT16
|
||||
- name: sinpif
|
||||
standards:
|
||||
- stdc
|
||||
return_type: float
|
||||
arguments:
|
||||
- type: float
|
||||
- name: sinpif16
|
||||
standards:
|
||||
- stdc
|
||||
|
||||
Reference in New Issue
Block a user