Lines Matching refs:dst

114     char *dst,
126 // Select the right function to perform the benchmark on. We perform 5000 initial loops to warm the cache and ensure that dst
132 rv = LZ4_compress_default(src, dst, src_size, max_dst_size);
135 if (memcmp(known_good_dst, dst, max_dst_size) != 0)
136 run_screaming("According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1);
139 LZ4_compress_default(src, dst, src_size, max_dst_size);
145 rv = LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration);
148 if (memcmp(known_good_dst, dst, max_dst_size) != 0)
149 run_screaming("According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1);
152 LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration);
158 rv = LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration);
161 if (memcmp(known_good_dst, dst, max_dst_size) != 0)
162 run_screaming("According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1);
165 LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration);
174 // //rv = LZ4_compress_generic_wrapper(&state, src, dst, src_size, max_dst_size, notLimited, byU16, noDict, noDictIssue, acceleration);
175 // LZ4_compress_generic_wrapper(&state, src, dst, src_size, max_dst_size, acceleration);
179 // if (memcmp(known_good_dst, dst, max_dst_size) != 0)
180 // run_screaming("According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1);
183 // //LZ4_compress_generic_wrapper(&state, src, dst, src_size, max_dst_size, notLimited, byU16, noDict, noDictIssue, acceleration);
184 // LZ4_compress_generic_wrapper(&state, src, dst, src_size, max_dst_size, acceleration);
191 rv = LZ4_decompress_safe(src, dst, comp_size, src_size);
194 if (memcmp(known_good_dst, dst, src_size) != 0)
195 run_screaming("According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1);
198 LZ4_decompress_safe(src, dst, comp_size, src_size);
204 rv = LZ4_decompress_fast(src, dst, src_size);
207 if (memcmp(known_good_dst, dst, src_size) != 0)
208 run_screaming("According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1);
211 LZ4_decompress_fast(src, dst, src_size);
252 char *dst = calloc(1, max_dst_size);
255 if (dst == NULL || known_good_dst == NULL || known_good_hc_dst == NULL)
274 memset(dst, 0, max_dst_size);
275 bytes_returned = LZ4_compress_fast(src, dst, src_size, max_dst_size, 1);
278 if (memcmp(dst, known_good_dst, bytes_returned) != 0)
279 run_screaming("According to memcmp(), the value we got in dst from LZ4_compress_fast doesn't match the known-good value. This is bad.", 1);
283 memset(dst, 0, max_dst_size);
285 bytes_returned = LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, 1);
288 if (memcmp(dst, known_good_dst, bytes_returned) != 0)
289 run_screaming("According to memcmp(), the value we got in dst from LZ4_compress_fast_extState doesn't match the known-good value. This is bad.", 1);
301 memset(dst, 0, max_dst_size);
305 bytes_returned = LZ4_compress_generic(&state, src, dst, src_size, max_dst_size, notLimited, byU16, noDict, noDictIssue, 1);
308 if (memcmp(dst, known_good_dst, bytes_returned) != 0)
309 run_screaming("According to memcmp(), the value we got in dst from LZ4_compress_generic doesn't match the known-good value. This is bad.", 1);
319 memset(dst, 0, max_dst_size);
321 uint64_t time_taken__default = bench(known_good_dst, ID__LZ4_COMPRESS_DEFAULT, iterations, src, dst, src_size, max_dst_size, src_comp_size);
322 uint64_t time_taken__fast = bench(known_good_dst, ID__LZ4_COMPRESS_FAST, iterations, src, dst, src_size, max_dst_size, src_comp_size);
323 uint64_t time_taken__fast_extstate = bench(known_good_dst, ID__LZ4_COMPRESS_FAST_EXTSTATE, iterations, src, dst, src_size, max_dst_size, src_comp_size);
324 //uint64_t time_taken__generic = bench(known_good_dst, ID__LZ4_COMPRESS_GENERIC, iterations, src, dst, src_size, max_dst_size, src_comp_size);
328 memset(dst, 0, max_dst_size);
330 uint64_t time_taken_hc__default = bench(known_good_hc_dst, ID__LZ4_COMPRESS_DEFAULT, iterations, hc_src, dst, src_size, max_dst_size, hc_src_comp_size);
331 uint64_t time_taken_hc__fast = bench(known_good_hc_dst, ID__LZ4_COMPRESS_FAST, iterations, hc_src, dst, src_size, max_dst_size, hc_src_comp_size);
332 uint64_t time_taken_hc__fast_extstate = bench(known_good_hc_dst, ID__LZ4_COMPRESS_FAST_EXTSTATE, iterations, hc_src, dst, src_size, max_dst_size, hc_src_comp_size);
333 //uint64_t time_taken_hc__generic = bench(known_good_hc_dst, ID__LZ4_COMPRESS_GENERIC, iterations, hc_src, dst, src_size, max_dst_size, hc_src_comp_size);