Bitwise basic operations helper