[libc-commits] [libc] [libc][math] Add missing functions from issignaling family to math.yaml (PR #199357)
Skandan C Y via libc-commits
libc-commits at lists.llvm.org
Sat May 23 20:55:47 PDT 2026
https://github.com/skandanyal updated https://github.com/llvm/llvm-project/pull/199357
>From 8d7d3190ce4f3fe0d9939e92c1d08b936ac487dd Mon Sep 17 00:00:00 2001
From: skandanyal <165555723+skandanyal at users.noreply.github.com>
Date: Sat, 23 May 2026 20:23:27 +0530
Subject: [PATCH 1/2] [libc][math] Add missing functions from issignaling
family to math.yaml
---
libc/include/math.yaml | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/libc/include/math.yaml b/libc/include/math.yaml
index 36ff380a1b305..10c195058f051 100644
--- a/libc/include/math.yaml
+++ b/libc/include/math.yaml
@@ -2888,3 +2888,42 @@ functions:
- type: long double
- type: int
- type: unsigned int
+ - name: issignaling
+ standards:
+ - stdc
+ return_type: double
+ arguments:
+ - type: int
+ - name: issignalingbf16
+ standards:
+ - stdc
+ return_type: _Float16
+ arguments:
+ - type: int
+ guard: LIBC_TYPES_HAS_FLOAT16
+ - name: issignalingf
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: float
+ - name: issignalingf16
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: _Float
+ guard: LIBC_TYPES_HAS_FLOAT16
+ - name: issignalingf128
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: float128
+ guard: LIBC_TYPES_HAS_FLOAT128
+ - name: issignalingl
+ standards:
+ - stdc
+ return_type: int
+ arguments:
+ - type: long double
\ No newline at end of file
>From 5c59e1cab8c2928849102a5c9d594f1036f39196 Mon Sep 17 00:00:00 2001
From: "Skandan C.Y" <165555723+skandanyal at users.noreply.github.com>
Date: Sun, 24 May 2026 09:25:11 +0530
Subject: [PATCH 2/2] [libc][math] Implemented all suggested corrections in
math.yaml
---
libc/include/math.yaml | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/libc/include/math.yaml b/libc/include/math.yaml
index 10c195058f051..fd5b69f562101 100644
--- a/libc/include/math.yaml
+++ b/libc/include/math.yaml
@@ -2891,16 +2891,9 @@ functions:
- name: issignaling
standards:
- stdc
- return_type: double
- arguments:
- - type: int
- - name: issignalingbf16
- standards:
- - stdc
- return_type: _Float16
+ return_type: int
arguments:
- - type: int
- guard: LIBC_TYPES_HAS_FLOAT16
+ - type: double
- name: issignalingf
standards:
- stdc
@@ -2912,7 +2905,7 @@ functions:
- stdc
return_type: int
arguments:
- - type: _Float
+ - type: _Float16
guard: LIBC_TYPES_HAS_FLOAT16
- name: issignalingf128
standards:
@@ -2926,4 +2919,4 @@ functions:
- stdc
return_type: int
arguments:
- - type: long double
\ No newline at end of file
+ - type: long double
More information about the libc-commits
mailing list