Important: The information in this document is obsolete and should not be used for new development.
BitShift
You can use theBitShiftfunction 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,
BitShiftshifts this many positions to the left; if this number is negative,BitShiftshifts this many positions to the right. The value in this parameter is converted to the result ofMOD32.DESCRIPTION
TheBitShiftfunction returns a long word that is the result of shifting the bits in the long word specified by thevalueparameter. The shift's direction and extent are determined by thecountparameter. 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 theBitShiftfunction, see Figure 3-10 on page 3-17.