[libc-commits] [libc] e6c0143 - [libc][math][c23] Update newhdrgen for new _Float16 math functions (#113005)

via libc-commits libc-commits at lists.llvm.org
Sun Oct 20 00:49:22 PDT 2024


Author: OverMighty
Date: 2024-10-20T09:49:19+02:00
New Revision: e6c01432b6fb6077e1bdf2e0abf05d2c2dd3fd3e

URL: https://github.com/llvm/llvm-project/commit/e6c01432b6fb6077e1bdf2e0abf05d2c2dd3fd3e
DIFF: https://github.com/llvm/llvm-project/commit/e6c01432b6fb6077e1bdf2e0abf05d2c2dd3fd3e.diff

LOG: [libc][math][c23] Update newhdrgen for new _Float16 math functions (#113005)

Added: 
    

Modified: 
    libc/newhdrgen/yaml/math.yaml

Removed: 
    


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