FD.io VPP  v21.06-3-gbb25fbf28
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))

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.

h
h
Definition: flowhash_template.h:372
len
u8 len
Definition: ip_types.api:103
STRUCT_OFFSET_OF_VAR
#define STRUCT_OFFSET_OF_VAR(v, f)
Definition: clib.h:86