Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] Define HUGE_VALF in math.h #98522

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

petrhosek
Copy link
Member

This is analogous to HUGE_VAL.

This is analogous to `HUGE_VAL`.
@petrhosek petrhosek added the libc label Jul 11, 2024
@petrhosek petrhosek requested a review from lntue July 11, 2024 19:06
@llvmbot
Copy link
Member

llvmbot commented Jul 11, 2024

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

Changes

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 --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("")
 

@petrhosek petrhosek merged commit 6cbea48 into llvm:main Jul 11, 2024
6 of 7 checks passed
aaryanshukla pushed a commit to aaryanshukla/llvm-project that referenced this pull request Jul 14, 2024
This is analogous to `HUGE_VAL`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants