Idiom exclusion is really so important
Idiom exclusion is really so important
Posted Nov 13, 2024 9:44 UTC (Wed) by magfr (subscriber, #16052)In reply to: Idiom exclusion is really so important by error27
Parent article: Progress on toolchain security features
I have a hand time understanding why
x+y<x
is considered easier to read and better than
INT_MAX-y<=x
Sure, the former is type agnostic and naïvely generates smaller code but I would expect both to end up checking the flag result of x+y.
