This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: portable signed right shift
- To: crosby at qwes dot math dot cmu dot edu, tm2 at best dot com
- Subject: Re: portable signed right shift
- From: dewar at gnat dot com
- Date: Wed, 28 Mar 2001 07:31:51 -0500 (EST)
- Cc: gcc at gcc dot gnu dot org
>-1 >> 1 = -1 (where >> denotes an arithmetic shift right)
Note however, that there is nothing in the definition of C that says
that -1 >> 1 = -1. This is just one possible convention of what you might
expect this undefined operator to do.