Lines Matching full:1
77 #define ID__LZ4_COMPRESS_DEFAULT 1
100 run_screaming(message, 1); in usage()
123 const int acceleration = 1; in bench()
133 if (rv < 1) in bench()
136 …According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1); in bench()
138 for (int i=1; i<=iterations; i++) in bench()
146 if (rv < 1) in bench()
149 …According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1); in bench()
151 for (int i=1; i<=iterations; i++) in bench()
159 if (rv < 1) in bench()
162 …According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1); in bench()
164 for (int i=1; i<=iterations; i++) in bench()
177 // if (rv < 1) in bench()
180 …According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1); in bench()
181 // for (int i=1; i<=iterations; i++) { in bench()
192 if (rv < 1) in bench()
195 …According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1); in bench()
197 for (int i=1; i<=iterations; i++) in bench()
205 if (rv < 1) in bench()
208 …According to memcmp(), the compressed dst we got doesn't match the known_good_dst... ruh roh.", 1); in bench()
210 for (int i=1; i<=iterations; i++) in bench()
215 run_screaming("The test specified isn't valid. Please check your code.", 1); in bench()
237 // Get and verify options. There's really only 1: How many iterations to run. in main()
239 if (argc > 1) in main()
240 iterations = atoi(argv[1]); in main()
241 if (iterations < 1) in main()
242 usage("Argument 1 (iterations) must be > 0."); in main()
247 // Set and derive sizes. Since we're using strings, use strlen() + 1 for \0. in main()
248 const size_t src_size = strlen(src) + 1; in main()
252 char *dst = calloc(1, max_dst_size); in main()
253 char *known_good_dst = calloc(1, max_dst_size); in main()
254 char *known_good_hc_dst = calloc(1, max_dst_size); in main()
256 run_screaming("Couldn't allocate memory for the destination buffers. Sad :(", 1); in main()
260 if (bytes_returned < 1) in main()
261 …run_screaming("Couldn't create a known-good destination buffer for comparison... this is bad.", 1); in main()
264 if (bytes_returned < 1) in main()
265 …t create a known-good (highly compressible) destination buffer for comparison... this is bad.", 1); in main()
273 …dentical to LZ4_compress_default except we need to specify an "acceleration" value. Defaults to 1. in main()
275 bytes_returned = LZ4_compress_fast(src, dst, src_size, max_dst_size, 1); in main()
276 if (bytes_returned < 1) in main()
279 … value we got in dst from LZ4_compress_fast doesn't match the known-good value. This is bad.", 1); in main()
285 bytes_returned = LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, 1); in main()
286 if (bytes_returned < 1) in main()
289 … got in dst from LZ4_compress_fast_extState doesn't match the known-good value. This is bad.", 1); in main()
305 …press_generic(&state, src, dst, src_size, max_dst_size, notLimited, byU16, noDict, noDictIssue, 1); in main()
306 if (bytes_returned < 1) in main()
309 …lue we got in dst from LZ4_compress_generic doesn't match the known-good value. This is bad.", 1); in main()
318 char *dst_d = calloc(1, src_size); in main()