[libc-commits] [libc] 6cbea48 - [libc] Define `HUGE_VALF` in math.h (#98522)
via libc-commits
libc-commits at lists.llvm.org
Thu Jul 11 14:18:41 PDT 2024
Author: Petr Hosek
Date: 2024-07-11T14:18:38-07:00
New Revision: 6cbea4880ea957aaa4f1ecc8dd49d60bc55ed723
URL: https://github.com/llvm/llvm-project/commit/6cbea4880ea957aaa4f1ecc8dd49d60bc55ed723
DIFF: https://github.com/llvm/llvm-project/commit/6cbea4880ea957aaa4f1ecc8dd49d60bc55ed723.diff
LOG: [libc] Define `HUGE_VALF` in math.h (#98522)
This is analogous to `HUGE_VAL`.
Added:
Modified:
libc/include/llvm-libc-macros/math-macros.h
Removed:
################################################################################
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