38 #ifndef included_zvec_h 39 #define included_zvec_h 90 #define zvec_coding_from_histogram(h,count_field,len,max_value_to_encode,zc) \ 91 _zvec_coding_from_histogram ((h), (len), \ 92 STRUCT_OFFSET_OF_VAR (h, count_field), \ 94 max_value_to_encode, \ 98 _zvec_coding_from_histogram (
void *_histogram,
100 uword histogram_elt_count_offset,
101 uword histogram_elt_bytes,
102 uword max_value_to_encode,
105 #define _(TYPE,IS_SIGNED) \ 106 uword * zvec_encode_##TYPE (uword * zvec, uword * zvec_n_bits, uword coding, \ 107 void * data, uword data_stride, uword n_data); 120 #define _(TYPE,IS_SIGNED) \ 121 void zvec_decode_##TYPE (uword * zvec, \ 122 uword * zvec_n_bits, \
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)
u32 zvec_histogram_count_t
format_function_t format_zvec_coding
static word zvec_unsigned_to_signed(uword u)