3 ms·
No. Imagine you have this: if (x < 7) doSomething(); else doSomethingElse(); With -ffast-math, the compiler is allowed to call neither doSomething
by nwallin 5y ago
No. Imagine you have this:
if (x < 7)
doSomething();
else
doSomethingElse();
With -ffast-math, the compiler is allowed to call neither doSomething() nor doSomethingElse() if x is nan. Which IMHO is not great.