FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
bier_bit_string.h File Reference
+ Include dependency graph for bier_bit_string.h:
+ This graph shows which files directly or indirectly include this file:

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)
 
u8format_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)
 

Macro Definition Documentation

◆ BIER_BBS_LEN_TO_BITS

#define BIER_BBS_LEN_TO_BITS (   _len)    (_len * 8)

Definition at line 25 of file bier_bit_string.h.

◆ BIER_BBS_LEN_TO_BUCKETS

#define BIER_BBS_LEN_TO_BUCKETS (   _len)    (_len)

Definition at line 24 of file bier_bit_string.h.

◆ BIER_BBS_LEN_TO_INTS

#define BIER_BBS_LEN_TO_INTS (   _len)    ((_len) / sizeof(int))

Definition at line 26 of file bier_bit_string.h.

◆ BIER_BBS_NUM_INT_BUCKETS

#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.

◆ BIER_BIT_MASK_BITS_PER_INT

#define BIER_BIT_MASK_BITS_PER_INT   (sizeof(int) * 8)

Definition at line 27 of file bier_bit_string.h.

Function Documentation

◆ bier_bit_string_clear_bit()

void bier_bit_string_clear_bit ( bier_bit_string_t mask,
bier_bp_t  bp 
)

Definition at line 66 of file bier_bit_string.c.

+ Here is the caller graph for this function:

◆ bier_bit_string_clear_string()

static void bier_bit_string_clear_string ( const bier_bit_string_t src,
bier_bit_string_t dest 
)
inlinestatic

Definition at line 69 of file bier_bit_string.h.

+ Here is the caller graph for this function:

◆ bier_bit_string_init()

static void bier_bit_string_init ( bier_bit_string_t bbs,
bier_hdr_len_id_t  len,
bier_bit_mask_bucket_t buckets 
)
inlinestatic

Definition at line 99 of file bier_bit_string.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bier_bit_string_is_zero()

static int bier_bit_string_is_zero ( const bier_bit_string_t src)
inlinestatic

Definition at line 54 of file bier_bit_string.h.

◆ bier_bit_string_logical_and_string()

static void bier_bit_string_logical_and_string ( const bier_bit_string_t src,
bier_bit_string_t dest 
)
inlinestatic

Definition at line 84 of file bier_bit_string.h.

+ Here is the caller graph for this function:

◆ bier_bit_string_set_bit()

void bier_bit_string_set_bit ( bier_bit_string_t mask,
bier_bp_t  bp 
)

Definition at line 52 of file bier_bit_string.c.

+ Here is the caller graph for this function:

◆ bier_find_first_bit_string_set()

static int bier_find_first_bit_string_set ( int  mask)
inlinestatic

Definition at line 35 of file bier_bit_string.h.

+ Here is the caller graph for this function:

◆ format_bier_bit_string()

u8* format_bier_bit_string ( u8 s,
va_list *  args 
)

Definition at line 78 of file bier_bit_string.c.

+ Here is the caller graph for this function: