Important: The information in this document is obsolete and should not be used for new development.
BitShift
You can use theBitShift
function to shift bits in a long word.
FUNCTION BitShift (value: LongInt; count: Integer): LongInt;
value
- A long word.
count
- The number of bits to shift. If this number is positive,
BitShift
shifts this many positions to the left; if this number is negative,BitShift
shifts this many positions to the right. The value in this parameter is converted to the result ofMOD
32.DESCRIPTION
TheBitShift
function returns a long word that is the result of shifting the bits in the long word specified by thevalue
parameter. The shift's direction and extent are determined by thecount
parameter. Zeroes are shifted into empty positions regardless of the direction of the shift.SEE ALSO
For an illustration of the result of performing an operation using theBitShift
function, see Figure 3-10 on page 3-17.