Please enable JavaScript to view this site.

Function that performs a logical shift to the right of the specified number of bits.

Syntax

i32 shr (i32 value, i32 nBit)

value

Variable on which to perform the shift

nBit

Number of bits to be shifted

result

Returns the result of the shift

Validity

Rule, Task

Note

In right shift the lightest outgoing bit is lost, the heaviest bit always enters 0 (sign is lost).

To keep the sign use r_shr()

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC