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
According to Intel that's what the shift right instruction does.
However, there's no guarantee that the C >> operator is mapped to the
Intel i386 right shift instruction.
The ANSI C standard says that x >> 32 is undefined on 32 bit platforms.
That means that a C compiler that replaced the expression x >> 32 with
PI, E, or some other random number would be ANSI C compliant. It would
be user hostile, but still standards compliant.
- Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu