UtilsLib REALbasic Plugin

BitShift Method

To obtain result of left- or right - shifted 32-bit value, use the BitShift function.

BitShift(
   op as Integer,
   bit as Integer) as Integer

Parameters

op
Integer value to be shifted.
bit
Poisitive shifts left, negative shifts right. If you pass 0 to this parameter then nothing hapens.

Returns

Integer

Remarks

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86

    See Also

    GlobalMethods Global