![]() |
BitShift |
||||
Header: | ToolUtils.h | Carbon status: | Supported | |
Shifts bits in a long word.
SInt32 BitShift ( SInt32 value, SInt16 count );
A long word.
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 of MOD 32.
A long word that is the result of shifting the bits in the long word passed in as an argument. The shifts direction and extent are determined by the count parameter. Zeroes are shifted into empty positions regardless of the direction of the shift.
Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.
© 2000 Apple Computer, Inc. (Last Updated 4/14/2000)