Bitshift Functions
Bitshift functions perform a bit shift operation on an integer or bigint value and return the shift result.
The bitshift functions have the following syntax.
|--+-IFX_BIT_LEFTSHIFT---+--(--operand--,--amount--)--|
'-IFX_BIT_RIGHTSHIFT--'
Element | Description | Restrictions | Syntax |
---|---|---|---|
operand | Entity whose bits are to be shifted. Its type will also be function's return type. | Must be of type integer or bigint. | Expression |
amount | Number of bits operand will be shifted by. | Integer value between 0 and number of bits in operand's type (or respective modulo of any other integer value). | Expression |