-
Notifications
You must be signed in to change notification settings - Fork 623
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
Clamp NaN to white when converting to integer #2381
Conversation
No clue why clippy throws a fit, this PR does not touch those failing files at all. |
There's new clippy complaints every time a new clippy version comes out. Don't worry about them. Do you know the performance implications of this change? I'm not sure performance was great to start with, but I don't want to unintentionally add guarantees that will make it unnecessary slow forever. |
https://godbolt.org/z/7318KPd4f Not great, but im not sure what else to do |
It should be possible to replace
|
Something like this appears to produce better codegen indeed https://godbolt.org/z/qnbjWhr3c |
I have a few ideas for speeding things up, too much for this PR though. Ill experiment and open a PR when i have something that might make sense. |
Linked issue: #2275