In general, (quiet) NAN times zero should give NAN -- and it does.
However, in one particular performance-critical part of my code, I want zero times anything to be zero.
What's a fast way to do this in C++?
In general, (quiet) NAN times zero should give NAN -- and it does.
However, in one particular performance-critical part of my code, I want zero times anything to be zero.
What's a fast way to do this in C++?
Copyright © 2021 Jogjafile Inc.
should avoid branches: double check the generated assembly.
Not all
boolcalculations imply a branch.