FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
Go to the source code of this file.
Macros | |
#define | BIER_BBS_LEN_TO_BUCKETS(_len) (_len) |
#define | BIER_BBS_LEN_TO_BITS(_len) (_len * 8) |
#define | BIER_BBS_LEN_TO_INTS(_len) ((_len) / sizeof(int)) |
#define | BIER_BIT_MASK_BITS_PER_INT (sizeof(int) * 8) |
#define | BIER_BBS_NUM_INT_BUCKETS(_bbs) (BIER_BBS_LEN_TO_BUCKETS(_bbs->bbs_len) / sizeof(int)) |
Functions | |
static int | bier_find_first_bit_string_set (int mask) |
void | bier_bit_string_set_bit (bier_bit_string_t *mask, bier_bp_t bp) |
void | bier_bit_string_clear_bit (bier_bit_string_t *mask, bier_bp_t bp) |
u8 * | format_bier_bit_string (u8 *s, va_list *args) |
static int | bier_bit_string_is_zero (const bier_bit_string_t *src) |
static void | bier_bit_string_clear_string (const bier_bit_string_t *src, bier_bit_string_t *dest) |
static void | bier_bit_string_logical_and_string (const bier_bit_string_t *src, bier_bit_string_t *dest) |
static void | bier_bit_string_init (bier_bit_string_t *bbs, bier_hdr_len_id_t len, bier_bit_mask_bucket_t *buckets) |
#define BIER_BBS_LEN_TO_BITS | ( | _len | ) | (_len * 8) |
Definition at line 25 of file bier_bit_string.h.
#define BIER_BBS_LEN_TO_BUCKETS | ( | _len | ) | (_len) |
Definition at line 24 of file bier_bit_string.h.
#define BIER_BBS_LEN_TO_INTS | ( | _len | ) | ((_len) / sizeof(int)) |
Definition at line 26 of file bier_bit_string.h.
#define BIER_BBS_NUM_INT_BUCKETS | ( | _bbs | ) | (BIER_BBS_LEN_TO_BUCKETS(_bbs->bbs_len) / sizeof(int)) |
Definition at line 50 of file bier_bit_string.h.
#define BIER_BIT_MASK_BITS_PER_INT (sizeof(int) * 8) |
Definition at line 27 of file bier_bit_string.h.
void bier_bit_string_clear_bit | ( | bier_bit_string_t * | mask, |
bier_bp_t | bp | ||
) |
|
inlinestatic |
|
inlinestatic |
Definition at line 99 of file bier_bit_string.h.
|
inlinestatic |
Definition at line 54 of file bier_bit_string.h.
|
inlinestatic |
void bier_bit_string_set_bit | ( | bier_bit_string_t * | mask, |
bier_bp_t | bp | ||
) |
|
inlinestatic |
Definition at line 35 of file bier_bit_string.h.
Definition at line 78 of file bier_bit_string.c.