Summary
Add support for the bitwise unary operator ~, the bitwise binary operators &, |, and ^, and the shift operators >> and <<. An example use case can be packing:
@internal
def _pack_1_1(left: bytes1, right: bytes1) -> bytes2:
left = left & convert((max_value(uint256) << 248), bytes1)
right = right & convert((max_value(uint256) << 248), bytes1)
return left | (right >> 8)
Summary
Add support for the bitwise unary operator
~, the bitwise binary operators&,|, and^, and the shift operators>>and<<. An example use case can be packing: