Re: Arithmetic Shift

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

 



On Fri, 10 Dec 2010, Paul Eggert wrote:

The usual assumption, of course, is that the compiler picks
one interpretation of >> and sticks with it.  ...

Not quite true: there are at least two interpretations, one for signed and
one for unsigned variables.

....  If that is true, then "#if -1 >> 1 == -1" works, ...

Is it clear that the preprocessor must interpret -1 as signed??

Regards
Peter Breitenlohner <peb@xxxxxxxxxxxx>

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux