This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Do C++ signed types have modulo semantics?
- From: Michael Veksler <VEKSLER at il dot ibm dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Tue, 28 Jun 2005 18:58:09 +0300
- Subject: Re: Do C++ signed types have modulo semantics?
Nathan Sidwell <nathan@codesourcery.com> wrote on 28/06/2005 18:48:26:
>
> why are you talking about one's complement in the context of gcc. From
> implement-c.texi
>
> @cite{Whether signed integer types are represented using sign and
magnitude,
> two's complement, or one's complement, and whether the extraordinary
value
> is a trap representation or an ordinary value (C99 6.2.6.2).}
>
> GCC supports only two's complement integer types, and all bit patterns
> are ordinary values.
>
> please stop considering non 2's complement stuff.
>
Sorry, did not realize this was documented this way.
Is "implement-c.texi" part of the user visible documentation, or is it
targeted for gcc developers?
Michael