Go to the source code of this file.
#define sparse_vec_free |
( |
|
v | ) |
vec_free(v) |
#define SPARSE_VEC_INVALID_INDEX (0) |
#define SPARSE_VEC_IS_RANGE (1 << 0) |
#define SPARSE_VEC_IS_VALID_RANGE (1 << 1) |
#define sparse_vec_validate |
( |
|
v, |
|
|
|
i |
|
) |
| |
Value: \
if (! (v)) \
\
0, \
&_insert); \
0); \
\
\
(v) + _i; \
})
sll srl srl sll sra u16x4 i
#define vec_insert_ha(V, N, M, H, A)
Insert N vector elements starting at element M, initialize new elements to zero (general version) ...
static uword sparse_vec_index_internal(void *v, uword sparse_index, uword maybe_range, u32 *insert)
static void * sparse_vec_new(uword elt_bytes, uword sparse_index_bits)
Definition at line 214 of file sparse_vec.h.
static uword sparse_vec_index |
( |
void * |
v, |
|
|
uword |
sparse_index |
|
) |
| |
|
inlinestatic |
static void sparse_vec_index2 |
( |
void * |
v, |
|
|
u32 |
si0, |
|
|
u32 |
si1, |
|
|
u32 * |
i0_return, |
|
|
u32 * |
i1_return |
|
) |
| |
|
inlinestatic |
static uword sparse_vec_index_internal |
( |
void * |
v, |
|
|
uword |
sparse_index, |
|
|
uword |
maybe_range, |
|
|
u32 * |
insert |
|
) |
| |
|
inlinestatic |
static void* sparse_vec_new |
( |
uword |
elt_bytes, |
|
|
uword |
sparse_index_bits |
|
) |
| |
|
inlinestatic |