shr

Right shift.

The right shift function takes the two numbers and right shift the bits of first argument by number of place specified by second argument. Excess bits shifted off to the right are discarded. Zero bits are shifted in from the left.

Syntax

shr[x, y]

Parameters

x Value to be shifted
y Number of bits to be shifted.
Return Value Shifted value.

Examples

#<result> = shr[9, 2]

result: 2

See also

shl