[libc-commits] [libc] `math.yaml` update (PR #103494)

via libc-commits libc-commits at lists.llvm.org
Tue Aug 13 18:16:35 PDT 2024


https://github.com/wldfngrs created https://github.com/llvm/llvm-project/pull/103494

Added auto function hdrgen specification for functions: totalordermagf, dsqrtl, fsqrt, fsqrtl

>From 310d3d1dbd726c081cf17cafec5d95e1e66e0866 Mon Sep 17 00:00:00 2001
From: wldfngrs <wldfngrs at gmail.com>
Date: Wed, 14 Aug 2024 01:24:32 +0100
Subject: [PATCH] Added auto function header generation specification for
 functions: totalordermag, totalordermagf, dsqrtl, fsqrt, fsqrtl

---
 libc/newhdrgen/yaml/math.yaml | 39 +++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/libc/newhdrgen/yaml/math.yaml b/libc/newhdrgen/yaml/math.yaml
index f8395522589123..dc3cde963162ad 100644
--- a/libc/newhdrgen/yaml/math.yaml
+++ b/libc/newhdrgen/yaml/math.yaml
@@ -214,6 +214,12 @@ functions:
     arguments:
       - type: long double
       - type: long double
+  - name: dsqrtl
+    standards:
+      - stdc
+    return_type: double
+    arguments:
+      - type: long double
   - name: erff
     standards:
       - stdc
@@ -1195,6 +1201,18 @@ functions:
       - type: long double
       - type: int
       - type: unsigned int
+  - name: fsqrt
+    standards:
+      - stdc
+    return_type: float type
+    arguments:
+      - type: double
+  - name: fsqrtl
+    standards:
+      - stdc
+    return_type: float
+    arguments:
+      - type: long double 
   - name: fsub
     standards:
       - stdc
@@ -2323,6 +2341,27 @@ functions:
     arguments:
       - type: const long double *
       - type: const long double *
+  - name: totalordermag
+    standards:
+      - stdc
+    return_type: int
+    arguments:
+      - type: double *
+      - type: double *
+  - name: totalordermagf
+    standards:
+      - stdc
+    return_type: int
+    arguments:
+      - type: float *
+      - type: float *
+  - name: totalordermagl
+    standards:
+      - stdc
+    return_type: int
+    arguments:
+      - type: long double *
+      - type: long double *
   - name: totalordermagf16
     standards:
       - stdc



More information about the libc-commits mailing list