Skip to content

Arithmetic and Logical Right Shifts

Arithmetic and logical right shifts explained: how a logical shift fills the most significant bit with 0, how an arithmetic shift differs, with examples.

Bit Manipulation Data Structures and Algorithms
Gopi Gorantala