26 Nov
2018
26 Nov
'18
11:35 p.m.
On 27/11/2018 12:02, Peter Dimov wrote:
Gavin Lambert wrote:
On 27/11/2018 11:29, Steven Watanabe wrote:
signed integer overflow has undefined behavior. unsigned integers wrap. > This means that signed integers give the compiler more scope for > optimization and/or runtime checks.
I'm not aware of any compilers that actually do that, ...
That shows different optimisation (the first is "return true", the second is "return x != UINT_MAX"), but that doesn't contradict my statement.