75 if (pdbv->
vec == NULL) {
82 if (bits != pdbv->
bits) {
210 for (i = 0; i < bytes; i++) {
211 if (match->
vec[i] != src[i]) {
260 for (i = 0; i < (pdbv->
bits - 1) / 50 + 1; i++) {
261 for (j = 0; j < 50; j++) {
263 if (bit >= pdbv->
bits) {
266 test_str[j] =
dbv_isset(pdbv, bit) ?
'1' :
'0';
281 size_t size1,
size_t size2)
287 for (i = 0; i < size1; i++) {
288 if ((vec1[0] & vec2[0]) != 0) {
303 size_t size1,
size_t size2)
309 for (i = 0; i < size1; i++) {
310 if (vec1[0] != vec2[0]) {
330 const unsigned char *vec_from,
331 size_t size_to,
size_t size_from)
337 for (i = 0; i < size_to; i++) {
338 vec_to[i] |= vec_from[i];
352 const unsigned char *vec_from,
353 size_t size_to,
size_t size_from)
359 for (i = 0; i < size_to; i++) {
360 vec_to[i] &= ~vec_from[i];
bool bv_check_mask(const unsigned char *vec1, const unsigned char *vec2, size_t size1, size_t size2)
void bv_to_dbv(struct dbv *dest, const unsigned char *src)
bool dbv_isset_any(const struct dbv *pdbv)
void dbv_resize(struct dbv *pdbv, int bits)
bool bv_match_dbv(const struct dbv *match, const unsigned char *src)
void dbv_init(struct dbv *pdbv, int bits)
void bv_clr_all_from(unsigned char *vec_to, const unsigned char *vec_from, size_t size_to, size_t size_from)
int dbv_bits(struct dbv *pdbv)
void dbv_set_all(struct dbv *pdbv)
void dbv_set(struct dbv *pdbv, int bit)
bool bv_are_equal(const unsigned char *vec1, const unsigned char *vec2, size_t size1, size_t size2)
bool dbv_isset(const struct dbv *pdbv, int bit)
void dbv_copy(struct dbv *dest, const struct dbv *src)
void dbv_debug(struct dbv *pdbv)
void bv_set_all_from(unsigned char *vec_to, const unsigned char *vec_from, size_t size_to, size_t size_from)
void dbv_free(struct dbv *pdbv)
void dbv_clr_all(struct dbv *pdbv)
void dbv_clr(struct dbv *pdbv, int bit)
bool dbv_are_equal(const struct dbv *pdbv1, const struct dbv *pdbv2)
void dbv_to_bv(unsigned char *dest, const struct dbv *src)
#define _BV_BYTE_INDEX(bits)
#define fc_assert_ret(condition)
#define fc_assert_ret_val(condition, val)
#define log_error(message,...)
#define fc_calloc(n, esz)
#define fc_realloc(ptr, sz)