SOURCE: qdev_macros.txt 1.16 (12/09/2014) English INDEP - PUBLIC
----------------------------------------------------------------------------
NAME
QDEV_HLP_POPCOUNT() - Counts bits set in 32bit integer.
SYNOPSIS
res = QDEV_HLP_POPCOUNT(x);
[ULONG] QDEV_HLP_POPCOUNT([ULONG]);
FUNCTION
This macro is very useful when all 1's must be computed
very fast. The method is known as Parallel Count.
INPUTS
x - 32 bit unsigned integer.
RETURNS
Returns how many 1's is set in that integer.
BASES
None.
NOTES
None.
SEE ALSO
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
|