REBOL Programming/shift

< REBOL Programming

USAGE:

SHIFT data bits /left /logical /part length 

DESCRIPTION:

Perform a bit shift operation. Right shift (decreasing) by default.

SHIFT is a native value.

ARGUMENTS

REFINEMENTS

SOURCE CODE

shift: native[
    {Perform a bit shift operation. Right shift (decreasing) by default.} 
    data [integer! binary!] 
    bits [integer!] "Number of bits to shift" 
    /left "Shift bits to the left (increasing)" 
    /logical "Use logical shift (unsigned, fill with zero)" 
    /part "Shift only part of a series." 
    length [integer!]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.