FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
compress.h File Reference
+ Include dependency graph for compress.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static_always_inline u64clib_compress_u64_x64 (u64 *dst, u64 *src, u64 mask)
 
static_always_inline u32 clib_compress_u64 (u64 *dst, u64 *src, u64 *mask, u32 n_elts)
 Compress array of 64-bit elemments into destination array based on mask. 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)
 Compress array of 32-bit elemments into destination array based on mask. More...
 
static_always_inline u16clib_compress_u16_x64 (u16 *dst, u16 *src, u64 mask)
 
static_always_inline u32 clib_compress_u16 (u16 *dst, u16 *src, u64 *mask, u32 n_elts)
 Compress array of 16-bit elemments into destination array based on mask. More...
 
static_always_inline u8clib_compress_u8_x64 (u8 *dst, u8 *src, u64 mask)
 
static_always_inline u32 clib_compress_u8 (u8 *dst, u8 *src, u64 *mask, u32 n_elts)
 Compress array of 8-bit elemments into destination array based on mask. More...
 

Function Documentation

◆ clib_compress_u16()

static_always_inline u32 clib_compress_u16 ( u16 dst,
u16 src,
u64 mask,
u32  n_elts 
)

Compress array of 16-bit elemments into destination array based on mask.

Parameters
dstdestination array of u16 elements
srcsource array of u16 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 174 of file compress.h.

+ Here is the call graph for this function:

◆ clib_compress_u16_x64()

static_always_inline u16* clib_compress_u16_x64 ( u16 dst,
u16 src,
u64  mask 
)

Definition at line 142 of file compress.h.

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

◆ clib_compress_u32()

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

Compress 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 117 of file compress.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 76 of file compress.h.

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

◆ clib_compress_u64()

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

Compress array of 64-bit elemments into destination array based on mask.

Parameters
dstdestination array of u64 elements
srcsource array of u64 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 51 of file compress.h.

+ Here is the call graph for this function:

◆ clib_compress_u64_x64()

static_always_inline u64* clib_compress_u64_x64 ( u64 dst,
u64 src,
u64  mask 
)

Definition at line 11 of file compress.h.

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

◆ clib_compress_u8()

static_always_inline u32 clib_compress_u8 ( u8 dst,
u8 src,
u64 mask,
u32  n_elts 
)

Compress array of 8-bit elemments into destination array based on mask.

Parameters
dstdestination array of u8 elements
srcsource array of u8 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 227 of file compress.h.

+ Here is the call graph for this function:

◆ clib_compress_u8_x64()

static_always_inline u8* clib_compress_u8_x64 ( u8 dst,
u8 src,
u64  mask 
)

Definition at line 199 of file compress.h.

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