2 ms·
NaN's are rarely required on the fast path of any code... The compiler ought to make a 2nd slow implementation for if any NaNs are seen.
by londons_explore 7y ago
NaN's are rarely required on the fast path of any code... The compiler ought to make a 2nd slow implementation for if any NaNs are seen.
- fluffything 7y agoSure, but then it needs to add a branch to detect the inputs, and maybe keep around some state to switch between implementations at run-time. Its far from clear that doing that is, in general, worth it.