Re: Arithmetic Shift

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

 



Paul Eggert <eggert@xxxxxxxxxxx> writes:

> On 12/07/10 20:41, Mike Gibson wrote:
>> Does a test already exist that checks for if the >> operator in C does
>> arithmetic shift?
>
> Doesn't this suffice, without dragging Autoconf into it?
>
> #if -1 >> 1 == -1

Is it even necessary to drag the preprocessor into it?

        if (-1 >> 1 == 1)
-- 
Ben Pfaff 
http://benpfaff.org


_______________________________________________
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