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

Go to the source code of this file.

Functions

static_always_inline u64 clib_mask_compare_u16_x64 (u16 v, u16 *a, u32 n_elts)
 
static_always_inline void clib_mask_compare_u16 (u16 v, u16 *a, u64 *mask, u32 n_elts)
 Compare 16-bit elemments with provied value and return bitmap. More...
 
static_always_inline u64 clib_mask_compare_u32_x64 (u32 v, u32 *a, u32 n_elts)
 
static_always_inline void clib_mask_compare_u32 (u32 v, u32 *a, u64 *bitmap, u32 n_elts)
 Compare 32-bit elemments with provied value and return bitmap. More...
 
static_always_inline u32clib_compress_u32_x64 (u32 *dst, u32 *src, u64 mask)
 
static_always_inline u32 clib_compress_u32 (u32 *dst, u32 *src, u64 *mask, u32 n_elts)
 Compare array of 32-bit elemments into destination array based on mask. More...
 

Function Documentation

◆ clib_compress_u32()

static_always_inline u32 clib_compress_u32 ( u32 dst,
u32 src,
u64 mask,
u32  n_elts 
)

Compare array of 32-bit elemments into destination array based on mask.

Parameters
dstdestination array of u32 elements
srcsource array of u32 elements
maskarray of u64 values representing compress mask
n_eltsnumber of elements in the source array
Returns
number of elements stored in destionation array

Definition at line 210 of file vector_funcs.h.

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

◆ clib_compress_u32_x64()

static_always_inline u32* clib_compress_u32_x64 ( u32 dst,
u32 src,
u64  mask 
)

Definition at line 167 of file vector_funcs.h.

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

◆ clib_mask_compare_u16()

static_always_inline void clib_mask_compare_u16 ( u16  v,
u16 a,
u64 mask,
u32  n_elts 
)

Compare 16-bit elemments with provied value and return bitmap.

Parameters
vvalue to compare elements with
aarray of u16 elements
maskarray of u64 where reuslting mask will be stored
n_eltsnumber of elements in the array
Returns
none

Definition at line 67 of file vector_funcs.h.

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

◆ clib_mask_compare_u16_x64()

static_always_inline u64 clib_mask_compare_u16_x64 ( u16  v,
u16 a,
u32  n_elts 
)

Definition at line 11 of file vector_funcs.h.

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

◆ clib_mask_compare_u32()

static_always_inline void clib_mask_compare_u32 ( u32  v,
u32 a,
u64 bitmap,
u32  n_elts 
)

Compare 32-bit elemments with provied value and return bitmap.

Parameters
vvalue to compare elements with
aarray of u32 elements
maskarray of u64 where reuslting mask will be stored
n_eltsnumber of elements in the array
Returns
none

Definition at line 151 of file vector_funcs.h.

+ Here is the call graph for this function:

◆ clib_mask_compare_u32_x64()

static_always_inline u64 clib_mask_compare_u32_x64 ( u32  v,
u32 a,
u32  n_elts 
)

Definition at line 83 of file vector_funcs.h.

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