Re: Ext2 patches

Joseph Malicki (jmalicki@geocities.com)
Thu, 09 Apr 1998 21:08:17 -0400


Linus Torvalds wrote:

> On Sat, 4 Apr 1998, Joseph Malicki wrote:
> >
> > A long expression >> 32 does have a defined value on the i386...... 0.Joe
>
> Nope. Try again - write a small test to do this (and don't use a
> _constant_ 32, because a constant 32 will be noticed by the compiler, and
> because it is undefined behaviour the compiler is free to do whatever it
> wants to (gcc _happens_ to return 0).
>
> Linus

Well, I was wrong...... but it still is defined in the Intel architecture, at
least >>according to Intel<<, I havent had a chance to try it in assembly....
Intel says the mask all bit shifts by 0x01F, so x >> 32 will become x >> 0

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu