[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:
Leandro Lacerda
2025-08-03 00:13:04 -03:00
committed by GitHub
parent 779868de69
commit cd19fbad09
3 changed files with 14 additions and 0 deletions

View File

@@ -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