port. Do not use the popc instruction which isn't implemented in hardware on an Ultrasparc. From Raymond Toy.