-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Math util refactor #4856
Math util refactor #4856
Conversation
It assumed that a signed integer could overflow which is UB and thus the compiler optimizes anything that depended on that out. The result was that if the power of two is actually greater than representable, the function would go into an infinite loop
8cdded8
to
662c8dd
Compare
I'm puzzled why the build is failing. The feature test macros don't seem to work. Even though they are C++20, on C++17 they should just be undefined and thus the fallback code should be generated... |
662c8dd
to
40ba1a6
Compare
40ba1a6
to
6d7c776
Compare
I really don't want to spend more time on a change that will be obsolete in three weeks! |
Here are my changes: Swiftb0y#7 |
The Arch build is IMHO sufficient to test the second code path. No need to put more work into this. We may verify this in the main after merge. Should I press merge? |
right, forgot we had that. Yes, please press merge. Thank you for taking the time to find a compromise with me. |
Various fixes. I spend way too much time on this tbh.