19.03.2015, 14:41
Quote:
Not an option at the moment.
I always have sucked with shifts. Could you show me what you mean? |
Taking your example from earlier:
Код:
FF7F3F1F // hex 11111111 01111111 00111111 00011111 ^ Most significant bit (MSB) Arithmetic right shift by 24: 11111111 11111111 11111111 11111111 ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ padding is the value of the MSB (1) Logical right shift by 24: 00000000 00000000 00000000 11111111 ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ padding is just 0