[libc-commits] [libc] [libc] Define `HUGE_VALF` in math.h (PR #98522)
via libc-commits
libc-commits at lists.llvm.org
Thu Jul 11 12:06:54 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Petr Hosek (petrhosek)
<details>
<summary>Changes</summary>
This is analogous to `HUGE_VAL`.
---
Full diff: https://github.com/llvm/llvm-project/pull/98522.diff
1 Files Affected:
- (modified) libc/include/llvm-libc-macros/math-macros.h (+1)
``````````diff
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("")
``````````
</details>
https://github.com/llvm/llvm-project/pull/98522
More information about the libc-commits
mailing list