You copied the Doc URL to your clipboard.
Shift operators
Shift operators act on numeric expressions, by shifting or rotating the first operand by the amount specified by the second.
The following table shows the shift operators:
Table 6-5 Shift operators
Operator |
Alias |
Usage |
Explanation |
---|---|---|---|
|
|
Rotate A left by B bits |
|
|
|
Rotate A right by B bits |
|
|
<< |
|
Shift A left by B bits |
|
>> |
|
Shift A right by B bits |
Note
SHR
is a logical shift and does not propagate
the sign bit.