Fixed bitwise operator logic