Bit Manipulaton

Bit twiddling functions

bcount_t
Bit count type.
bmask_t
Bit mask type.
count_set_bits
Count set bits.
highest_bit_set
Number of highest set bit.
is_power_of_2
test for power of two.
lowest_bit_set
Number of lowest set bit.
make_mask
Make a mask with N set bits.
make_mask
Make a mask with a range of bits set.
A quick and nasty collection of inline bit manipulation functions.
Author:
J. Zweizig
Version:
1.0; Modified 14-Jul-2000

alphabetic index hierarchy of classes


generated by doc++