Herror ::tuple_rsh (
    const HTuple &T,
    const HTuple &Shift,
    long *Rsh
)
Herror ::tuple_rsh (
    const HTuple &T,
    const HTuple &Shift,
    HTuple *Rsh
)

Shift a tuple bitwise to the right.

::tuple_rsh shifts the tuple T bitwise to the right by Shift places. This operation is equivalent to a division by 2^Shift. If T is negative, the result depends on the hardware. If Shift is negative or larger than 32, the result is undefined. If both tuples have the same length the corresponding elements of both tuples are shifted. Otherwise, either T or Shift must have length 1. In this case, the operation is performed for each element of the longer tuple with the single element of the other tuple. The input tuples must contain only integer numbers.


Parameters

T (input_control)
integer(-array) -> HTuple.long
Input tuple.

Shift (input_control)
integer(-array) -> HTuple.long
Number of places to shift the input tuple.

Rsh (output_control)
integer(-array) -> (HTuple.) long *
Shifted input tuple.


Alternatives

::tuple_div


See also

::tuple_lsh


Module

Operators not requiring licensing



Copyright © 1996-2002 MVTec Software GmbH