3 ms·
A big problem with -ffast-math is that it causes isnan and isinf to be completely, silently broken (gcc and clang). Like, "oh you want faster FP operations? we
by usefulcat 2y ago
A big problem with -ffast-math is that it causes isnan and isinf to be completely, silently broken (gcc and clang).
Like, "oh you want faster FP operations? well then surely you have no need to ever be able to detect infinite or NaN values.."
- wavemode 2y ago> well then surely you have no need to ever be able to detect infinite or NaN values Well yeah, maybe I actually don't.
- usefulcat 2y agoIf you don't, that's fine. But is it really necessary or desirable for -ffast-math to silently break isinf() and isnan()? I don't think it's inconceivable that some people might need those. I mean, I can write my own implementations, but it seems kind of silly that I should need to in the first place.