Reduce use of popcnt