[libc-commits] [libc] [libc] Define `HUGE_VALF` in math.h (PR #98522)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Thu Jul 11 12:06:37 PDT 2024
https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/98522
This is analogous to `HUGE_VAL`.
>From 82f7cfe665f0129e9e3f88b7be71dc518b52f099 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Thu, 11 Jul 2024 12:05:34 -0700
Subject: [PATCH] [libc] Define `HUGE_VALF` in math.h
This is analogous to `HUGE_VAL`.
---
libc/include/llvm-libc-macros/math-macros.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libc/include/llvm-libc-macros/math-macros.h b/libc/include/llvm-libc-macros/math-macros.h
index 9c56da9e89db3..0ceb2c5c8202b 100644
--- a/libc/include/llvm-libc-macros/math-macros.h
+++ b/libc/include/llvm-libc-macros/math-macros.h
@@ -27,6 +27,7 @@
#define MATH_ERREXCEPT 2
#define HUGE_VAL __builtin_huge_val()
+#define HUGE_VALF __builtin_huge_valf()
#define INFINITY __builtin_inf()
#define NAN __builtin_nanf("")
More information about the libc-commits
mailing list