Skip to content

float classification routines can now be constant folded in C #592

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

Merged
merged 1 commit into from
May 6, 2025

Conversation

ZERICO2005
Copy link
Contributor

@ZERICO2005 ZERICO2005 commented Apr 21, 2025

float classification routines can now be evaluated at compile time in C using __builtin_constant_p. If a function call is emitted in the auto-test code (hence not constant folded), it will conflict with some functions I've defined in test.asm. This will cause linker error resulting in the auto-test failing.

I also fixed math_test.cpp and constexpr addressof

@mateoconlechuga mateoconlechuga merged commit 5e5478c into master May 6, 2025
9 checks passed
@mateoconlechuga mateoconlechuga deleted the pr/fix_constexpr branch May 6, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants