Slightly simpler bitmask check.

No binary change with clang++ -O3.