3 ms·
> I'd assume they don't want to introduce a check for the FP case as it would break pretty much all the code on earth which assumes that NaNs and Infs do not ex
by account42 5y ago
> I'd assume they don't want to introduce a check for the FP case as it would break pretty much all the code on earth which assumes that NaNs and Infs do not exist.
There are even compile flags that let the compiler assume that as well - some of them as benign sounding as -ffast-math or -Ofast.
- jcelerier 5y agoor the aptly-named -funsafe-math-optimizations... fun and safe math optimizations, what could go wrong :^p