title: Best way to calculate number of 1's in the binary representation of a number. (MIPS)
body: <p>I need to calculate the number of 1's in a binary number, lets say 5, so 00001001 would be 2 or n=2. I am using MIPS. Best way to do this? </p>