This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: shifting


Zack Weinberg wrote:
> 
> On Thu, Jul 04, 2002 at 08:25:01AM +0200, Marko Mlinar wrote:
> > Hello!
> >
> > About some time I noticed gcc has strange "feature" with shifting.
> 
> Whenever you shift a number left or right by more than the width of
off by one :) ----------------------------------^ or equal to
> its type, the behavior is undefined -- the compiler is allowed to do
> whatever it pleases.

nathan

-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
           The voices in my head told me to say this
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]