The use of masks, and the right and left shift operators, come in handy here.
在这里使用掩码、右移和左移运算符很方便。
youdao
Performs an arithmetic left shift on a bit pattern.
对位模式执行数学左移位。
应用推荐
模块上移
模块下移
不移动