📅  最后修改于: 2022-03-11 14:55:03.542000             🧑  作者: Mango
Shifting left by n bits on a signed or unsigned binary number has the effect of multiplying it by 2n. Shifting right by n bits on a two's complement signed binary number has the effect of dividing it by 2n, but it always rounds down