3 ms·
If you’re shifting right, the behaviour ought to be Unsigned: should produce a zero Signed: should sign extend the leftmost bit, so it will either be 0 or -1
by hasmanean 3y ago
If you’re shifting right, the behaviour ought to be
Unsigned: should produce a zero
Signed: should sign extend the leftmost bit, so it will either be 0 or -1
Shifting left should result in a 0.