Regenerated implementations that use centralized bitpos() and mask() calculations.