omg is it like, subtracting a from b and adding it back? …oooh that's one way to implement that branchless, I seeeee
This is why it's so important for compilers to comply strictly to spec & not do foolish transformations that change results.
-
-
this one's actually worse though: the compiler didn't even do any transformations
-
rather, x87 keeps extra internal precision between ops, and you *can't turn it off*
-
that is, the naive, straightforward compilation where you perform no transformations whatsoever will give wrong results
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.