Searched refs:ml2 (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.15/lib/lz4/ |
D | lz4hc_compress.c | 358 int ml, ml2, ml3, ml0; in LZ4HC_compress_generic() local 393 ml2 = LZ4HC_InsertAndGetWiderMatch(ctx, in LZ4HC_compress_generic() 398 ml2 = ml; in LZ4HC_compress_generic() 400 if (ml2 == ml) { in LZ4HC_compress_generic() 420 ml = ml2; in LZ4HC_compress_generic() 438 if (ip + new_ml > start2 + ml2 - MINMATCH) in LZ4HC_compress_generic() 439 new_ml = (int)(start2 - ip) + ml2 - MINMATCH; in LZ4HC_compress_generic() 446 ml2 -= correction; in LZ4HC_compress_generic() 454 if (start2 + ml2 < mflimit) in LZ4HC_compress_generic() 456 start2 + ml2 - 3, start2, in LZ4HC_compress_generic() [all …]
|
/Linux-v5.15/lib/zstd/ |
D | compress.c | 1942 size_t const ml2 = searchMax(ctx, ip, iend, &offsetFound, maxSearches, mls); in ZSTD_compressBlock_lazy_generic() local 1943 if (ml2 > matchLength) in ZSTD_compressBlock_lazy_generic() 1944 matchLength = ml2, start = ip, offset = offsetFound; in ZSTD_compressBlock_lazy_generic() 1965 size_t const ml2 = searchMax(ctx, ip, iend, &offset2, maxSearches, mls); in ZSTD_compressBlock_lazy_generic() local 1966 int const gain2 = (int)(ml2 * 4 - ZSTD_highbit32((U32)offset2 + 1)); /* raw approx */ in ZSTD_compressBlock_lazy_generic() 1968 if ((ml2 >= EQUAL_READ32) && (gain2 > gain1)) { in ZSTD_compressBlock_lazy_generic() 1969 matchLength = ml2, offset = offset2, start = ip; in ZSTD_compressBlock_lazy_generic() 1978 …size_t const ml2 = ZSTD_count(ip + EQUAL_READ32, ip + EQUAL_READ32 - offset_1, iend) + EQUAL_READ3… in ZSTD_compressBlock_lazy_generic() local 1979 int const gain2 = (int)(ml2 * 4); in ZSTD_compressBlock_lazy_generic() 1981 if ((ml2 >= EQUAL_READ32) && (gain2 > gain1)) in ZSTD_compressBlock_lazy_generic() [all …]
|