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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: wldfngrs (wldfngrs)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/103494.diff


1 Files Affected:

- (modified) libc/newhdrgen/yaml/math.yaml (+39) 


``````````diff
diff --git a/libc/newhdrgen/yaml/math.yaml b/libc/newhdrgen/yaml/math.yaml
index f839552258912..dc3cde963162a 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

``````````

</details>


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


More information about the libc-commits mailing list