This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Where does the C standard describe overflow of signed integers?
- From: Matthew Woodcraft <mattheww at chiark dot greenend dot org dot uk>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 14 Jul 2005 18:57:13 +0100
- Subject: Re: Where does the C standard describe overflow of signed integers?
Paul Schlie wrote:
>As optimization seems to be a non-argument, as by analogy all
>optimizations which are available for unsigned arithmetic are
>correspondingly available for signed integer operations; as any signed
>value may then be thought of as being unsigned for the purposes of
>computation and/or comparison.
What about optimising x*2/2 to x?
-M-