Dave Goodell <[email protected]> writes: > On Dec 10, 2010, at 11:33 AM CST, Ben Pfaff wrote: > >> Paul Eggert <[email protected]> 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) > > Careful, that expression will probably always evaluate to > false.
Oops, I just failed to carefully re-type Paul's expression. You can mentally apply the obvious fix. -- Ben Pfaff http://benpfaff.org _______________________________________________ Autoconf mailing list [email protected] http://lists.gnu.org/mailman/listinfo/autoconf
