[libc-commits] [libc] f53e355 - [libc] Add definitions for totalordermag(, f, l, f128), dsqrt(l, f128), fsqrt(, l, f128) to math.yaml. (#103494)

via libc-commits libc-commits at lists.llvm.org
Wed Aug 14 05:22:19 PDT 2024


Author: wldfngrs
Date: 2024-08-14T08:22:15-04:00
New Revision: f53e3550632d786ccc41388455436e813221feb3

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

LOG: [libc] Add definitions for totalordermag(,f, l, f128), dsqrt(l, f128), fsqrt(, l, f128) to math.yaml. (#103494)

Added auto function hdrgen specification for functions:  totalordermag(,f, l, f128), dsqrt(l, f128), fsqrt(, l, f128)

Added: 
    

Modified: 
    libc/newhdrgen/yaml/math.yaml

Removed: 
    


################################################################################
diff  --git a/libc/newhdrgen/yaml/math.yaml b/libc/newhdrgen/yaml/math.yaml
index f839552258912..a244a307a206f 100644
--- a/libc/newhdrgen/yaml/math.yaml
+++ b/libc/newhdrgen/yaml/math.yaml
@@ -214,6 +214,20 @@ functions:
     arguments:
       - type: long double
       - type: long double
+  - name: dsqrtl
+    standards:
+      - stdc
+    return_type: double
+    arguments:
+      - type: long double
+  - name: dsqrtf128
+    standards:
+      - llvm_libc_ext
+    return_type: double
+    arguments:
+      - type: float128
+      - type: float128
+    guard: LIBC_TYPES_HAS_FLOAT128
   - name: erff
     standards:
       - stdc
@@ -1195,6 +1209,25 @@ 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: fsqrtf128
+    standards:
+      - llvm_libc_ext
+    return_type: float
+    arguments:
+      - type: float128
+    guard: LIBC_TYPES_HAS_FLOAT128
   - name: fsub
     standards:
       - stdc
@@ -2323,6 +2356,35 @@ 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: totalordermagf128
+    standards:
+      - stdc
+    return_type: int
+    arguments:
+      - type: float128 *
+      - type: float128 *
+    guard: LIBC_TYPES_HAS_FLOAT128
   - name: totalordermagf16
     standards:
       - stdc


        


More information about the libc-commits mailing list