-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
<compare>: Improve floating-point spaceship CPO codegen #1475
<compare>: Improve floating-point spaceship CPO codegen #1475
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is a great improvement - I will push fixes for a couple of comment typos but everything else looks like crystalline perfection to me. 💎
@StephanTLavavej I pushed fixes for comment typos after your approval. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a pretty cool change. I got to learn a couple of ones' complement tricks today.
Thanks for increasing the spaceship's speed - onward to Alpha Centauri! 🚀 🛸 🪐 |
Implements floating-point
strong_order
andweak_order
without branching on the sign bit.Also adds signaling NaN test cases, enabled on clang only (MSVC "quiets" signaling NaNs when constant evaluated).