[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arithmetic Shift
From: |
Ben Pfaff |
Subject: |
Re: Arithmetic Shift |
Date: |
Fri, 10 Dec 2010 09:33:18 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Paul Eggert <address@hidden> 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
- Re: Arithmetic Shift, (continued)
- Re: Arithmetic Shift, Philip Herron, 2010/12/09
- Re: Arithmetic Shift, Paul Eggert, 2010/12/09
- Re: Arithmetic Shift, Mike Gibson, 2010/12/09
- Re: Arithmetic Shift, Andrew W. Nosenko, 2010/12/10
- Re: Arithmetic Shift, Paul Eggert, 2010/12/10
- Re: Arithmetic Shift, Peter Breitenlohner, 2010/12/10
- Re: Arithmetic Shift, Andrew W. Nosenko, 2010/12/10
- Re: Arithmetic Shift, Bob Friesenhahn, 2010/12/10
- Re: Arithmetic Shift, Andrew W. Nosenko, 2010/12/11
Re: Arithmetic Shift,
Ben Pfaff <=
Re: Arithmetic Shift, Paul Eggert, 2010/12/10
Re: Arithmetic Shift, Andrew W. Nosenko, 2010/12/11
Re: Arithmetic Shift, Paul Eggert, 2010/12/11
Re: Arithmetic Shift, Andrew W. Nosenko, 2010/12/11
Re: Arithmetic Shift, Andrew W. Nosenko, 2010/12/11