|
tesseract
5.0.0-alpha-619-ge9db
|
#include <cstddef>#include <cstdint>Go to the source code of this file.
Macros | |
| #define | SET_BIT(array, bit) (array[bit/BITSINLONG]|=1<<(bit&(BITSINLONG-1))) |
| #define | reset_bit(array, bit) (array[bit/BITSINLONG]&=~(1<<(bit&(BITSINLONG-1)))) |
| #define | test_bit(array, bit) (array[bit/BITSINLONG] & (1<<(bit&(BITSINLONG-1)))) |
Typedefs | |
| using | BIT_VECTOR = uint32_t * |
Variables | |
| const size_t | BITSINLONG = 8 * sizeof(uint32_t) |
| #define reset_bit | ( | array, | |
| bit | |||
| ) | (array[bit/BITSINLONG]&=~(1<<(bit&(BITSINLONG-1)))) |
| #define SET_BIT | ( | array, | |
| bit | |||
| ) | (array[bit/BITSINLONG]|=1<<(bit&(BITSINLONG-1))) |
| #define test_bit | ( | array, | |
| bit | |||
| ) | (array[bit/BITSINLONG] & (1<<(bit&(BITSINLONG-1)))) |
| using BIT_VECTOR = uint32_t* |