ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.pod
(Generate patch)

Comparing libecb/ecb.pod (file contents):
Revision 1.11 by sf-exg, Thu May 26 21:18:52 2011 UTC vs.
Revision 1.12 by sf-exg, Thu May 26 21:34:16 2011 UTC

234equivalently the number of bits set to 0 before the least significant 234equivalently the number of bits set to 0 before the least significant
235bit set), starting from 0. If C<x> is 0 the result is undefined. A 235bit set), starting from 0. If C<x> is 0 the result is undefined. A
236common use case is to compute the integer binary logarithm, i.e., 236common use case is to compute the integer binary logarithm, i.e.,
237floor(log2(n)). For example: 237floor(log2(n)). For example:
238 238
239 ecb_ctz32(3) = 1 239 ecb_ctz32(3) = 0
240 ecb_ctz32(6) = 2 240 ecb_ctz32(6) = 1
241 241
242=item int ecb_popcount32 (uint32_t x) 242=item int ecb_popcount32 (uint32_t x)
243 243
244Returns the number of bits set to 1 in C<x>. For example: 244Returns the number of bits set to 1 in C<x>. For example:
245 245

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines