Solutions to inverting results

...but don't forget to mask-off the unused bits.