FD.io VPP  v18.04-17-g3a0d853
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

#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:75

Definition at line 90 of file zvec.h.

Typedef Documentation

Definition at line 88 of file zvec.h.

Function Documentation

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:

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:

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:

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_function_t format_zvec_coding

Definition at line 86 of file zvec.h.