daft.functions.shift_right#
shift_right #
shift_right(expr: Expression, num_bits: Expression) -> Expression
Shifts the bits of an integer expression to the right (expr >> num_bits).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expr | Expression | The expression to shift. | required |
num_bits | Expression | The number of bits to shift the expression to the right | required |
Note
For unsigned integers, this expression perform a logical right shift. For signed integers, this expression perform an arithmetic right shift.
Source code in daft/functions/bitwise.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |