autoconf
[Top][All Lists]
Advanced

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

Re: Arithmetic Shift


From: Peter Breitenlohner
Subject: Re: Arithmetic Shift
Date: Fri, 10 Dec 2010 17:20:56 +0100 (CET)
User-agent: Alpine 2.00 (LNX 1167 2008-08-23)

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 <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]