20 #ifndef BMZ_INTERNAL_H
21 #define BMZ_INTERNAL_H
28 #define BMZ_HASH_MOD 1
29 #define BMZ_HASH_MOD16X2 2
30 #define BMZ_HASH_MASK16X2 3
31 #define BMZ_HASH_MASK 4
32 #define BMZ_HASH_MASK32X2 5
35 bmz_hash_mod(const
void *in,
size_t in_len,
size_t b,
size_t m);
39 size_t m1,
size_t m2);
56 size_t b1,
size_t b2,
size_t m1,
size_t m2);
60 size_t b1,
size_t b2);
67 size_t b1,
size_t b2);
78 size_t b1,
size_t b2,
size_t m1,
size_t m2);
82 size_t b1,
size_t b2);
90 size_t b1,
size_t b2);
97 bmz_pack_mod(const
void *in,
size_t in_len,
void *out,
size_t *out_len_p,
98 size_t offset,
size_t fp_len,
unsigned flags,
void *work_mem,
102 bmz_pack_mod16x2(const
void *in,
size_t in_len,
void *out,
size_t *out_len_p,
103 size_t offset,
size_t fp_len,
unsigned flags,
void *work_mem,
104 size_t b1,
size_t b2,
size_t m1,
size_t m2);
108 size_t offset,
size_t fp_len,
unsigned flags,
void *work_mem,
109 size_t b1,
size_t b2);
112 bmz_pack_mask(const
void *in,
size_t in_len,
void *out,
size_t *out_len_p,
113 size_t offset,
size_t fp_len,
unsigned flags,
void *work_mem,
118 size_t offset,
size_t fp_len,
unsigned flags,
void *work_mem,
119 size_t b1,
size_t b2);
122 bmz_bm_pack_mod(const
void *in,
size_t in_len,
void *out,
size_t *out_len_p,
123 size_t offset,
size_t fp_len,
void *work_mem,
128 size_t offset,
size_t fp_len,
void *work_mem,
129 size_t b1,
size_t b2,
size_t m1,
size_t m2);
133 size_t *out_len_p,
size_t offset,
size_t fp_len,
134 void *work_mem,
size_t b1,
size_t b2);
137 bmz_bm_pack_mask(const
void *in,
size_t in_len,
void *out,
size_t *out_len_p,
138 size_t offset,
size_t fp_len,
void *work_mem,
size_t b);
142 size_t *out_len_p,
size_t offset,
size_t fp_len,
143 void *work_mem,
size_t b1,
size_t b2);
152 bmz_bm_unpack(const
void *in,
size_t in_len,
void *out,
size_t *out_len_p);
155 bmz_lz_pack(const
void *in,
size_t in_len,
void *out,
size_t *out_len_p,
162 bmz_lz_unpack(const
void *in,
size_t in_len,
void *out,
size_t *out_len_p);
bmz_bm_unpack(const void *in, size_t in_len, void *out, size_t *out_len_p)
bmz_bm_pack_mod16x2(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, void *work_mem, size_t b1, size_t b2, size_t m1, size_t m2)
bmz_hash_mask32x2(const void *in, size_t in_len, size_t b1, size_t b2)
bmz_hash_mask16x2(const void *in, size_t in_len, size_t b1, size_t b2)
bmz_pack_mod16x2(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, unsigned flags, void *work_mem, size_t b1, size_t b2, size_t m1, size_t m2)
bmz_bm_pack_worklen(size_t in_len, size_t fp_len)
bmz_bench_lut_mod(const void *in, size_t in_len, size_t fp_len, void *mem, size_t b, size_t m)
bmz_hash_mod16x2(const void *in, size_t in_len, size_t b1, size_t b2, size_t m1, size_t m2)
bmz_check_hash_mask32x2(const void *in, size_t in_len, size_t fp_len, size_t b1, size_t b2)
bmz_bench_lut_mask16x2(const void *in, size_t in_len, size_t fp_len, void *mem, size_t b1, size_t b2)
bmz_bench_lut_mask32x2(const void *in, size_t in_len, size_t fp_len, void *mem, size_t b1, size_t b2)
bmz_lz_unpack(const void *in, size_t in_len, void *out, size_t *out_len_p)
#define HT_EXTERN(ret_type)
bmz_bm_pack_mod(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, void *work_mem, size_t b, size_t m)
bmz_bm_pack_mask16x2(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, void *work_mem, size_t b1, size_t b2)
bmz_pack_mask(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, unsigned flags, void *work_mem, size_t b)
bmz_pack_mask16x2(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, unsigned flags, void *work_mem, size_t b1, size_t b2)
bmz_check_hash_mod16x2(const void *in, size_t in_len, size_t fp_len, size_t b1, size_t b2, size_t m1, size_t m2)
bmz_bench_hash(const void *in, size_t in_len, unsigned type)
bmz_set_collision_thresh(int thresh)
bmz_bench_lut_mask(const void *in, size_t in_len, size_t fp_len, void *mem, size_t b)
bmz_pack_mask32x2(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, unsigned flags, void *work_mem, size_t b1, size_t b2)
bmz_hash_mask(const void *in, size_t in_len, size_t b)
bmz_lz_pack(const void *in, size_t in_len, void *out, size_t *out_len_p, void *work_mem)
bmz_pack_mod(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, unsigned flags, void *work_mem, size_t b, size_t m)
bmz_lz_pack_worklen(size_t in_len)
bmz_check_hash_mod(const void *in, size_t in_len, size_t fp_len, size_t b, size_t m)
bmz_bm_dump(const void *in, size_t in_len)
bmz_bm_pack_mask32x2(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, void *work_mem, size_t b1, size_t b2)
bmz_bench_lut_mod16x2(const void *in, size_t in_len, size_t fp_len, void *mem, size_t b1, size_t b2, size_t m1, size_t m2)
bmz_check_hash_mask16x2(const void *in, size_t in_len, size_t fp_len, size_t b1, size_t b2)
bmz_hash_mod(const void *in, size_t in_len, size_t b, size_t m)
bmz_bm_pack_mask(const void *in, size_t in_len, void *out, size_t *out_len_p, size_t offset, size_t fp_len, void *work_mem, size_t b)
bmz_check_hash_mask(const void *in, size_t in_len, size_t fp_len, size_t b)