[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:23 PDT 2024
https://github.com/overmighty created https://github.com/llvm/llvm-project/pull/113005
None
>From a24b1116b1254d99d03bbfc35081d6a7f99928cd Mon Sep 17 00:00:00 2001
From: OverMighty <its.overmighty at gmail.com>
Date: Sat, 19 Oct 2024 01:48:19 +0200
Subject: [PATCH] [libc][math][c23] Update newhdrgen for new _Float16 math
functions
---
libc/newhdrgen/yaml/math.yaml | 56 +++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
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
More information about the libc-commits
mailing list