Logical Shift Right, Arithmetic Shift Right, and Circular Logical Shift Right

Logical right shift: the data is shifted to the right, and the left end is filled with zeros;

Arithmetic right shift: data is shifted to the right while copying the sign bit (0 or 1) to fill in the leftmost position

Rotate right: the data is shifted to the right, and the rightmost data is placed in the leftmost position

A logical left shift is equivalent to an arithmetic left shift.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324973640&siteId=291194637