Lines Matching defs:known_good_dst
110 const char *known_good_dst,
127 // remains matching to known_good_dst between successive calls.
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);
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);
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);
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);
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);
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);
253 char *known_good_dst = calloc(1, max_dst_size);
255 if (dst == NULL || known_good_dst == NULL || known_good_hc_dst == NULL)
259 bytes_returned = LZ4_compress_default(src, known_good_dst, src_size, max_dst_size);
278 if (memcmp(dst, known_good_dst, bytes_returned) != 0)
288 if (memcmp(dst, known_good_dst, bytes_returned) != 0)
308 if (memcmp(dst, known_good_dst, bytes_returned) != 0)
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);
325 uint64_t time_taken__decomp_safe = bench(src, ID__LZ4_DECOMPRESS_SAFE, iterations, known_good_dst, dst_d, src_size, max_dst_size, src_comp_size);
326 uint64_t time_taken__decomp_fast = bench(src, ID__LZ4_DECOMPRESS_FAST, iterations, known_good_dst, dst_d, src_size, max_dst_size, src_comp_size);