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

via libc-commits libc-commits at lists.llvm.org
Wed Aug 14 06:04:39 PDT 2024


================
@@ -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
----------------
overmighty wrote:

`totalordermag*` functions take pointers to `const` values. See section F.10.12.2 of https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf.

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


More information about the libc-commits mailing list