This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Document arithmetic overflow semantics
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: Robert Dewar <dewar at gnat dot com>
- Cc: aph at redhat dot com, gcc at gcc dot gnu dot org
- Date: Fri, 14 Feb 2003 06:19:33 +1100
- Subject: Re: [PATCH] Document arithmetic overflow semantics
- References: <20030213190602.CD538F2D5E@nile.gnat.com>
On 13-Feb-2003, Robert Dewar <dewar@gnat.com> wrote:
> > What do you mean by this, exactly? Java is defied as having signed
> > two's complement arithmetic.
>
> At the implementation level, the difference between signed and unsigned
> arithmetic (for operations like plus and minus) is in whether overflow
> is an issue or not
There are operations other than plus and minus.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.