Anyone want to guess what gcc generates for a==b?0:a-b ? Any ideas why?
-
Show this thread
-
Replying to @RichFelker
it's not that bad is it?https://gcc.godbolt.org/z/j_0a5i
1 reply 0 retweets 0 likes -
Replying to @johnregehr
It is when you expect https://gcc.godbolt.org/z/M2JzTF and it's in an extreme hot path.
2 replies 0 retweets 1 like -
Replying to @RichFelker @johnregehr
I may regret asking, but what kind of code has this in a hot path?
1 reply 0 retweets 1 like
Replying to @mfukar @johnregehr
For the related comparison issue, getc, scanf, etc. The subtraction is probably less hot.
7:26 AM - 15 Sep 2018
0 replies
0 retweets
0 likes
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.