Use bitwise negation instead of logical not