Lines Matching +full:- +full:d
89 *offsetsEnd = *(offsetsEnd - 1) + cmpBytes; in test_compress()
92 if (offsetsEnd - offsets > MAX_BLOCKS) { exit(2); } in test_compress()
100 write_int(outFp, offsetsEnd - offsets); in test_compress()
112 int endBlock = ((offset + length - 1) / BLOCK_BYTES) + 1; in test_decompress()
133 seek_bin(inpFp, -4, SEEK_END); in test_decompress()
136 seek_bin(inpFp, -4 * (numOffsets + 1), SEEK_END); in test_decompress()
149 int cmpBytes = offsets[currentBlock + 1] - offsets[currentBlock]; in test_decompress()
163 int blockLength = MIN(length, (decBytes - offset)); in test_decompress()
166 length -= blockLength; in test_decompress()
183 result = (int) r0 - (int) r1; in compare()
191 length -= r0; in compare()
215 snprintf(lz4Filename, 256, "%s.lz4s-%d", argv[1], BLOCK_BYTES); in main()
216 snprintf(decFilename, 256, "%s.lz4s-%d.dec", argv[1], BLOCK_BYTES); in main()
225 printf("offset = [%d]\n", offset); in main()
226 printf("length = [%d]\n", length); in main()
240 printf("compress : %s -> %s\n", inpFilename, lz4Filename); in main()
253 printf("decompress : %s -> %s\n", lz4Filename, decFilename); in main()
267 printf("verify : %s <-> %s\n", inpFilename, decFilename); in main()