[libc-commits] [libc] [libc][math][c23] Update newhdrgen for new _Float16 math functions (PR #113005)
via libc-commits
libc-commits at lists.llvm.org
Fri Oct 18 16:56:55 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: OverMighty (overmighty)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/113005.diff
1 Files Affected:
- (modified) libc/newhdrgen/yaml/math.yaml (+56)
``````````diff
diff --git a/libc/newhdrgen/yaml/math.yaml b/libc/newhdrgen/yaml/math.yaml
index 98ea1a0d25fbb7..fe07803cff06f8 100644
--- a/libc/newhdrgen/yaml/math.yaml
+++ b/libc/newhdrgen/yaml/math.yaml
@@ -206,6 +206,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: coshf16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: ddivl
standards:
- stdc
@@ -266,6 +273,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: exp10m1f16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: exp2
standards:
- stdc
@@ -1557,6 +1571,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: log10f16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: log1p
standards:
- stdc
@@ -1581,6 +1602,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: log2f16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: logb
standards:
- stdc
@@ -1619,6 +1647,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: logf16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: lrint
standards:
- stdc
@@ -2297,6 +2332,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: sinhf16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: sinpif16
standards:
- stdc
@@ -2323,6 +2365,13 @@ functions:
arguments:
- type: float128
guard: LIBC_TYPES_HAS_FLOAT128
+ - name: sqrtf16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: sqrtl
standards:
- stdc
@@ -2347,6 +2396,13 @@ functions:
return_type: float
arguments:
- type: float
+ - name: tanhf16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: _Float16
+ guard: LIBC_TYPES_HAS_FLOAT16
- name: totalorder
standards:
- stdc
``````````
</details>
https://github.com/llvm/llvm-project/pull/113005
More information about the libc-commits
mailing list