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.
make_mask
Make a mask with N set bits.
make_mask
Make a mask with a range of bits set.
lowest_bit_set
Number of lowest set bit.
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


Please send questions and comments to zweizig_j@ligo.caltech.edu


generated by doc++