38 #ifndef included_zvec_h 39 #define included_zvec_h 89 #define zvec_coding_from_histogram(h,count_field,len,max_value_to_encode,zc) \ 90 _zvec_coding_from_histogram ((h), (len), \ 91 STRUCT_OFFSET_OF_VAR (h, count_field), \ 93 max_value_to_encode, \ 97 _zvec_coding_from_histogram (
void * _histogram,
99 uword histogram_elt_count_offset,
100 uword histogram_elt_bytes,
101 uword max_value_to_encode,
104 #define _(TYPE,IS_SIGNED) \ 105 uword * zvec_encode_##TYPE (uword * zvec, uword * zvec_n_bits, uword coding, \ 106 void * data, uword data_stride, uword n_data); 119 #define _(TYPE,IS_SIGNED) \ 120 void zvec_decode_##TYPE (uword * zvec, \ 121 uword * zvec_n_bits, \
always_inline uword zvec_signed_to_unsigned(word s)
uword zvec_encode(uword coding, uword data, uword *n_result_bits)
uword zvec_decode(uword coding, uword zdata, uword *n_zdata_bits)
u32 zvec_histogram_count_t
format_function_t format_zvec_coding
always_inline word zvec_unsigned_to_signed(uword u)