Fix bitwise operations documentation
@@ -28,27 +28,27 @@ Bitwise Functions
Returns the bitwise XOR of ``x`` and ``y`` in 2's complement representation.
-.. function:: bitwise_left_shift(x, shift, bits) -> bigint
+.. function:: bitwise_shift_left(x, shift, bits) -> bigint
Left shift operation on ``x`` (treated as ``bits``-bit integer)
shifted by ``shift``.
- SELECT bitwise_logical_left_shift(7, 2, 4); -- 12
- SELECT bitwise_logical_left_shift(7, 2, 64); -- 28
+ SELECT bitwise_shift_left(7, 2, 4); -- 12
+ SELECT bitwise_shift_left(7, 2, 64); -- 28
-.. function:: bitwise_shift_right_logical(x, shift, bits) -> bigint
+.. function:: bitwise_logical_shift_right(x, shift, bits) -> bigint
Logical right shift operation on ``x`` (treated as ``bits``-bit integer)
shifted by ``shift``.
- SELECT bitwise_logical_right_shift(7, 2, 4); -- 1
- SELECT bitwise_logical_right_shift(-8, 2, 5); -- 6
+ SELECT bitwise_logical_shift_right(7, 2, 4); -- 1
+ SELECT bitwise_logical_shift_right(-8, 2, 5); -- 6
-.. function:: bitwise_shift_right_arithmetic(x, shift) -> bigint
+.. function:: bitwise_arithmetic_shift_right(x, shift) -> bigint
Arithmetic right shift operation on ``x`` shifted by ``shift`` in 2's complement representation.
- SELECT bitwise_arithmetic_right_shift(-8, 2); -- -2
- SELECT bitwise_arithmetic_right_shift(7, 2); -- 1
+ SELECT bitwise_arithmetic_shift_right(-8, 2); -- -2
+ SELECT bitwise_arithmetic_shift_right(7, 2); -- 1
See also :func:`bitwise_and_agg` and :func:`bitwise_or_agg`.
