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.
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.
No comments yet.