求1比特数

func onesCount(x int) (ones int) {for ; x > 0 ; x &= x - 1 {ones++}return}
func onesCount(x int) (ones int) {for ; x > 0 ; x &= x - 1 {ones++}return
}