FD.io VPP  v20.05.1-5-g09f167997
Vector Packet Processing
zvec.h File Reference
+ Include dependency graph for zvec.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  zvec_coding_info_t
 

Macros

#define zvec_coding_from_histogram(h, count_field, len, max_value_to_encode, zc)
 

Typedefs

typedef u32 zvec_histogram_count_t
 

Functions

uword zvec_encode (uword coding, uword data, uword *n_result_bits)
 
uword zvec_decode (uword coding, uword zdata, uword *n_zdata_bits)
 
static uword zvec_signed_to_unsigned (word s)
 
static word zvec_unsigned_to_signed (uword u)
 

Variables

format_function_t format_zvec_coding
 

Macro Definition Documentation

◆ zvec_coding_from_histogram

#define zvec_coding_from_histogram (   h,
  count_field,
  len,
  max_value_to_encode,
  zc 
)
Value:
_zvec_coding_from_histogram ((h), (len), \
STRUCT_OFFSET_OF_VAR (h, count_field), \
sizeof (h[0]), \
max_value_to_encode, \
(zc))
#define STRUCT_OFFSET_OF_VAR(v, f)
Definition: clib.h:82
vec_header_t h
Definition: buffer.c:322
u8 len
Definition: ip_types.api:92

Definition at line 90 of file zvec.h.

Typedef Documentation

◆ zvec_histogram_count_t

Definition at line 88 of file zvec.h.

Function Documentation

◆ zvec_decode()

uword zvec_decode ( uword  coding,
uword  zdata,
uword n_zdata_bits 
)

Definition at line 64 of file zvec.c.

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

◆ zvec_encode()

uword zvec_encode ( uword  coding,
uword  data,
uword n_result_bits 
)

Definition at line 97 of file zvec.c.

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

◆ zvec_signed_to_unsigned()

static uword zvec_signed_to_unsigned ( word  s)
inlinestatic

Definition at line 143 of file zvec.h.

+ Here is the caller graph for this function:

◆ zvec_unsigned_to_signed()

static word zvec_unsigned_to_signed ( uword  u)
inlinestatic

Definition at line 151 of file zvec.h.

+ Here is the caller graph for this function:

Variable Documentation

◆ format_zvec_coding

format_function_t format_zvec_coding

Definition at line 86 of file zvec.h.