|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
23 uword **bitmap_return = va_arg (*va,
uword **);
31 for (
i = 0; s >= 0;
i++, s--)
36 *bitmap_return = bitmap;
57 uword **bitmap_return = va_arg (*va,
uword **);
84 for (
i =
a;
i <=
b;
i++)
87 *bitmap_return = bitmap;
110 int i, is_trailing_zero = 1;
121 if (x && is_trailing_zero)
122 is_trailing_zero = 0;
124 if (x || !is_trailing_zero)
157 fc = clib_bitmap_next_clear (bitmap, fs + 1);
159 s =
format (s,
"%lu-%lu", fs, fc - 1);
161 s =
format (s,
"%lu", fs);
163 if ((fs = clib_bitmap_next_set (bitmap, fc)) == ~0)
static uword clib_bitmap_first_set(uword *ai)
Return the lowest numbered set bit in a bitmap.
__clib_export u8 * format_bitmap_list(u8 *s, va_list *args)
Format a bitmap as a list.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
__clib_export uword unformat_bitmap_mask(unformat_input_t *input, va_list *va)
unformat an any sized hexadecimal bitmask into a bitmap
#define clib_bitmap_free(v)
Free a bitmap.
static uword * clib_bitmap_set(uword *ai, uword i, uword value)
Sets the ith bit of a bitmap to new_value Removes trailing zeros from the bitmap.
#define vec_free(V)
Free vector's memory (no header).
description fragment has unexpected format
__clib_export u8 * format_bitmap_hex(u8 *s, va_list *args)
Format a bitmap as a string of hex bytes.
static uword clib_bitmap_get_multiple(uword *bitmap, uword i, uword n_bits)
Gets the ith through ith + n_bits bit values from a bitmap.
__clib_export uword unformat_bitmap_list(unformat_input_t *input, va_list *va)
unformat a list of bit ranges into a bitmap (eg "0-3,5-7,11" )
#define vec_bytes(v)
Number of data bytes in vector.
static uword * clib_bitmap_set_multiple(uword *bitmap, uword i, uword value, uword n_bits)
sets the ith through ith + n_bits bits in a bitmap