21 ms·
It's only UB for positive n. For negative n, it is an is-even test, so it can't be optimized to return true.
by edflsafoiewq 5y ago
It's only UB for positive n. For negative n, it is an is-even test, so it can't be optimized to return true.
- whimsicalism 5y agoOh yeah - negative numbers exist, doh!