Further simplify previous patch

Use a single XOR instead of NEGATE + AND

No functional change.
Merge remote-tracking branch 'upstream/master' into syzygy1