Subject: Re: POSIX signal macros broken/shakey on 1.0 beta
To: None <current-users@sun-lamp.cs.berkeley.edu, rhealey@aggregate.com>
From: None <mycroft@gnu.ai.mit.edu>
List: current-users
Date: 08/11/1994 20:27:58
   And it isn't the compiler's fault either as the generated code is
   looking ok.

That depends on what you consider to be the `correct' thing.  The i386
chip itself chops off all but the lower 5 bits of any shift count.
According to ANSI, the semantics of shifting by a value greater than
the size of the object being shifted are unspecified, so the compiler
does not need to account for this.

(Note that the i286 and below did not truncate shift counts.  This was
done when the barrel shifter was added, and it became too much of an
annoyance to do otherwise.)


------------------------------------------------------------------------------