-
Notifications
You must be signed in to change notification settings - Fork 153
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
Removing macros #1614
Removing macros #1614
Conversation
This is looking good! Also, I'm just curious: Is it because bool fits in a register so compiler can optimize it well with a mov and a jmp without any additional checking or loading from memory? @stephenberry |
I think it is because the boolean is simpler for the compiler to see through. It is easy for the compiler to see that a boolean is being checked twice (to achieve a single path) and merge it into a single check. It is more complicated if a register is being modified, because there could be other side effects. |
I'm merging in these changes. @msqr1, let me know if there are more macros that I ought to eliminate. |
Removing macros for the sake of C++20 modules and easier debugging.