Public Methods | |
struct bitset* | bitset_ctor (struct bitset *ptr_bitset, short size) |
void | bitset_clear (struct bitset *ptr_bitset) |
void | bitset_excl (struct bitset *ptr_bitset, short fbit) |
bool | bitset_in (struct bitset *ptr_bitset, short fbit) |
void | bitset_incl (struct bitset *ptr_bitset, short fbit) |
void | bitset_add (struct bitset *ptr_bitset_1, struct bitset *ptr_bitset_2) |
void | bitset_mul (struct bitset *ptr_bitset_1, struct bitset *ptr_bitset_2) |
void | bitset_sub (struct bitset *ptr_bitset_1, struct bitset *ptr_bitset_2) |
void | bitset_dtor (struct bitset *ptr_bitset, int memory_flag) |
Works with a set of bits using simple bit operations.
You must call the bitset_ctor() function before use, and the bitset_dtor() function after use.
|
Adds two bitsets, the same as logical OR.
|
|
Sets all bits to zero.
|
|
Creates a set of bits.
|
|
The bitset destructor.
|
|
Excludes a bit from the set at a specified position.
|
|
Determines whether the bit at a specified position was excluded.
|
|
Adds the bit at a specified position to the set.
|
|
Multiplies two bitsets, the same as logical AND.
|
|
Subtracts two bitsets, the same as logical XOR.
|
Copyright © 2001 Cybiko, Inc. All rights reserved. | More information... |