Please enable JavaScript to view this site.

Function that performs a logical shift to the right of one bit, in a specified window, of a u32 array, considered in fact as an array of bits.

Syntax

i32 shift_right (u32 array, i32 idStart, i32 nBit, i32 stsBit)

array

Reference array.

Note: Even if of only one element it must be declared as a variable.

idStart

Index of the start bit of the window.

The number must be between 0 and (arrayLength*32 - 1).

WARNING: The user is responsible for checking the possible overflow.

nBit

Number of bits of window size

stsBit

Boolean value of the incoming bit

Result

Returns the value (0 or 1) of the outgoing bit (the lowest) from the window in which the shift is performed

Validity

Rule, Task

Note


 

  

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