[libc-commits] [libc] [libc] Add sinpif16 function (PR #110994)

via libc-commits libc-commits at lists.llvm.org
Mon Oct 7 02:05:54 PDT 2024


================
@@ -2290,6 +2290,12 @@ functions:
     return_type: float
     arguments:
       - type: float
+  - name: sinpif16
+    standards:
+      - stdc
+    return_type: _Float16
+    arguments:
+      - type: _Float16
   - name: sqrt
----------------
overmighty wrote:

Should specify the `LIBC_TYPES_HAS_FLOAT16` guard when adding a `_Float16` function with newhdrgen.

```suggestion
  - name: sinpif16
    standards:
      - stdc
    return_type: _Float16
    arguments:
      - type: _Float16
    guard: LIBC_TYPES_HAS_FLOAT16
  - name: sqrt
```

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


More information about the libc-commits mailing list