[libc-commits] [libc] Libc add missing math yaml functions (PR #199340)
Arnav Mundada via libc-commits
libc-commits at lists.llvm.org
Sat May 23 04:00:50 PDT 2026
https://github.com/ArnavM21git updated https://github.com/llvm/llvm-project/pull/199340
>From cf8f8c6eb89601f032968ce4cd5e7eb175385751 Mon Sep 17 00:00:00 2001
From: Arnav Mundada <arnav.mundada at vit.edu.in>
Date: Sat, 23 May 2026 16:14:24 +0530
Subject: [PATCH] [libc][math] Add missing gamma, error, and fma functions to
math.yaml
---
libc/include/math.yaml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/libc/include/math.yaml b/libc/include/math.yaml
index 36ff380a1b305..bfe2790bafbed 100644
--- a/libc/include/math.yaml
+++ b/libc/include/math.yaml
@@ -359,6 +359,23 @@ functions:
arguments:
- type: long double
- type: long double
+ - name: dfmaf128
+ standards:
+ - stdc
+ return_type: double
+ arguements:
+ - type: float128
+ - type: float128
+ - type: float128
+ guard: LIBC_TYPES_HAS_FLOAT128
+ - name: dfmal
+ standards:
+ - stdc
+ return_type: double
+ arguements:
+ - type: long double
+ - type: long double
+ - type: long double
- name: dmulf128
standards:
- llvm_libc_ext
@@ -402,6 +419,12 @@ functions:
arguments:
- type: long double
- type: long double
+ - name: erf
+ standards:
+ - stdc
+ return_type: double
+ arguements:
+ - type: double
- name: erff
standards:
- stdc
@@ -2698,6 +2721,18 @@ functions:
arguments:
- type: _Float16
guard: LIBC_TYPES_HAS_FLOAT16
+ - name: tgamma
+ standards:
+ - stdc
+ return_type: double
+ arguements:
+ - type: double
+ - name: tgammaf
+ standards:
+ - stdc
+ return_type: float
+ arguements:
+ - type: float
- name: totalorder
standards:
- stdc
More information about the libc-commits
mailing list