Nios/popcount
From ASMBits
nios/bswapPrevious
Nextnios/pow2
Write a function that returns the number of 1 bits in a given 32-bit integer (also known as population count).
int popcount (int n);
Expected solution length: Around 10 lines.
Sample Input
5 255
Sample Output
2 8
nios/bswapPrevious
Nextnios/pow2