News for hackers. Stuff that matters.
Re:Std: Clamp generates less efficient assembly than std:min... by usefulcat on Tuesday January 16, 2024 @11:27AM (#39015155)
My experience is with gcc and clang on x86. I generally agree with you regarding accuracy, which is why I was quite surprised when I first discovered that -Ofast breaks isnan/isinf.

Even if I don't care about the accuracy differences, I still need a way to check for invalid input data. The upshot is that I had to roll my own isnan and isinf to be able to use -Ofast (because it's actually the underlying __builtin_xxx intrinsics that are broken), which still seems wrong to me.

There are no comments on this comment yet.