If you inspect the logic and assume that sendsize > 0 and recvsize > 0, this is the only condition you need. It will be compressed at compile time to mask != 3.