Lines Matching +full:0 +full:x402
20 #define LZNT_CHUNK_SIZE 0x1000
41 size_t len = 0; in get_match_len()
51 size_t len1 = 0, len2 = 0; in longest_match_std()
55 ((40543U * ((((src[0] << 4) ^ src[1]) << 4) ^ src[2])) >> 4) & in longest_match_std()
60 if (hash[0] >= ctx->unc && hash[0] < src && hash[0][0] == src[0] && in longest_match_std()
61 hash[0][1] == src[1] && hash[0][2] == src[2]) { in longest_match_std()
65 hash[0] + 3, ctx->max_len - 3); in longest_match_std()
68 if (hash[1] >= ctx->unc && hash[1] < src && hash[1][0] == src[0] && in longest_match_std()
81 ctx->best_match = hash[0]; in longest_match_std()
84 hash[1] = hash[0]; in longest_match_std()
85 hash[0] = src; in longest_match_std()
95 return 0; in longest_match_best()
97 max_len = 0; in longest_match_best()
107 return max_len >= 3 ? max_len : 0; in longest_match_best()
111 0x1002, 0x802, 0x402, 0x202, 0x102, 0x82, 0x42, 0x22, 0x12,
115 0x10, 0x20, 0x40, 0x80, 0x100, 0x200, 0x400, 0x800, 0x1000,
134 * * 0 - Ok, @cmpr contains @cmpr_chunk_size bytes of compressed data.
143 size_t cnt = 0; in compress_chunk()
144 size_t idx = 0; in compress_chunk()
148 u8 not_zero = 0; in compress_chunk()
149 /* Control byte of 8-bit values: ( 0 - means byte as is, 1 - short pair ). */ in compress_chunk()
150 u8 ohdr = 0; in compress_chunk()
161 ctx->max_len = s_max_len[0]; in compress_chunk()
170 max_len = up + 3 <= unc_end ? (*match)(up, ctx) : 0; in compress_chunk()
190 ohdr = 0; in compress_chunk()
203 t16 = (*cmpr_chunk_size - 3) | 0xB000; in compress_chunk()
204 cmpr[0] = t16; in compress_chunk()
207 return not_zero ? 0 : LZNT_ERROR_ALL_ZEROS; in compress_chunk()
216 * 0x3FFF == ((LZNT_CHUNK_SIZE + 2 - 3) | 0x3000) in compress_chunk()
218 cmpr[0] = 0xff; in compress_chunk()
219 cmpr[1] = 0x3f; in compress_chunk()
224 return 0; in compress_chunk()
232 size_t bit = 0; in decompress_chunk()
233 size_t index = 0; in decompress_chunk()
257 pair |= cmpr[0]; in decompress_chunk()
273 for (; length > 0; length--, up++) in decompress_chunk()
294 * @level: 0 - Standard compression.
295 * !0 - Best compression, requires a lot of cpu.
313 * * 0 - Input buffer is full zero.
328 memset(ctx->hash, 0, sizeof(ctx->hash)); in compress_lznt()
335 cmpr_size = 0; in compress_lznt()
338 if (err < 0) in compress_lznt()
348 p[0] = p[1] = 0; in compress_lznt()
350 return is_zero ? 0 : PtrOffset(cmpr, p); in compress_lznt()
371 chunk_hdr |= cmpr_chunk[0]; in decompress_lznt()
384 if (chunk_hdr & 0x8000) { in decompress_lznt()
390 if (err < 0) in decompress_lznt()
425 chunk_hdr |= cmpr_chunk[0]; in decompress_lznt()
439 memset(unc_chunk, 0, t1); in decompress_lznt()