posted 20 years ago
shift-value << shift-distance
If the type of the shift-value is int, only the five lowest-order bits are used as the shift-distance.
8 << -1 means shift the value 8 to the left 31 bit positions,
because the five lowest-orders bits of -1 are binary 11111 == decimal 31.
8 << 32 means shift the value 8 to the left 0 bit positions,
because the five lowest-order bits of 32 are binary 00000.
If the type of the shift-value is long, only the six lowest-order bits are used as the shift-distance.
[ September 07, 2003: Message edited by: Marlene Miller ]