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