slightly faster bit trickery.