countones
count one bits in word
Synopsis
#include <math.h>
int countones(int parm)
int lcountones(long parm)
Description
This function counts the number of one bits in
Algorithm
=
−
j
N
1
∑
return =
=
j
0
where
is the number of bits in
N
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
bit[j] of parm
parm
DSP Run-Time Library
.
parm
4-53
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers