bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC optimizes integer overflow: bug or feature?


From: Florian Weimer
Subject: Re: GCC optimizes integer overflow: bug or feature?
Date: Tue, 19 Dec 2006 14:40:22 +0100

* Robert Dewar:

> What is (a*2)/2 optimized to? certainly it has the value a if you
> wrap,

Huh?  Isn't (INT_MAX*2)/2 negative (and thus not equal to INT_MAX) in
2-complement arithmetic?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]