Performs an arithmetic left shift on a bit pattern.
对位模式执行数学左移位。
In an arithmetic left shift, the bits shifted beyond the range of the result data type are discarded, and the bit positions vacated on the right are set to zero.
在算术左移位中,位元移动的范围若超过结果资料型别会予以舍弃,而且右方空出的位元位置会设定成零。
In this case, a 32-bit value was shifted left, and the result of that shift was cast to a 64-bit value.
在这种情况下,会将32位值左移,其结果是值强制转换为64位值。
In an arithmetic right shift, the bits shifted beyond the rightmost bit position are discarded, and the leftmost bit is propagated into the bit positions vacated at the left.
在算术右移位运算中,将丢弃移出最右侧数位位置的数位,并将最左侧的数位传播到左端空出的数位位置。
In an arithmetic right shift, the bits shifted beyond the rightmost bit position are discarded, and the leftmost bit is propagated into the bit positions vacated at the left.
在算术右移位运算中,将丢弃移出最右侧数位位置的数位,并将最左侧的数位传播到左端空出的数位位置。
应用推荐