stint/private/uint_shift

Source   Edit  

Procs

func shiftLeft(r: var StUint; a: StUint; k: SomeInteger) {....raises: [], gcsafe.}
Shift a left by k bits and store in r. Source   Edit  
func shiftRight(r: var StUint; a: StUint; k: SomeInteger) {....raises: [], gcsafe.}
Shift a right by k bits and store in r. Source   Edit  
func shlLarge(r: var Limbs; a: Limbs; w, shift: SomeInteger) {....raises: [],
    gcsafe.}
Shift left by w words + shift bits. Assumes r is 0 initialized. Source   Edit  
func shlSmall(r: var Limbs; a: Limbs; k: SomeInteger) {....raises: [], gcsafe.}

Compute the shift left operation of x and k.

k MUST be less than the base word size (2^32 or 2^64).

Source   Edit  
func shlWords(r: var Limbs; a: Limbs; w: SomeInteger) {....raises: [], gcsafe.}
Shift left by w word. Source   Edit  
func shrLarge(r: var Limbs; a: Limbs; w, shift: SomeInteger) {....raises: [],
    gcsafe.}
Shift right by w words + shift bits. Assumes r is 0 initialized. Source   Edit  
func shrSmall(r: var Limbs; a: Limbs; k: SomeInteger) {....raises: [], gcsafe.}

Shift right by k.

k MUST be less than the base word size (2^32 or 2^64).

Source   Edit  
func shrWords(r: var Limbs; a: Limbs; w: SomeInteger) {....raises: [], gcsafe.}
Shift right by w word. Source   Edit