Lines Matching refs:match

1232         const BYTE *match;  in LZ4_compress_generic_validated()  local
1253 match = LZ4_getPositionOnHash(h, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated()
1257 } while ((match + LZ4_DISTANCE_MAX < ip) || (LZ4_read32(match) != LZ4_read32(ip))); in LZ4_compress_generic_validated()
1287 match = dictBase + matchIndex; in LZ4_compress_generic_validated()
1293 match = base + matchIndex; in LZ4_compress_generic_validated()
1303 match = dictBase + matchIndex; in LZ4_compress_generic_validated()
1308 match = base + matchIndex; in LZ4_compress_generic_validated()
1314 match = base + matchIndex; in LZ4_compress_generic_validated()
1331 if (LZ4_read32(match) == LZ4_read32(ip)) in LZ4_compress_generic_validated()
1343 while (((ip > anchor) & (match > lowLimit)) && (unlikely(ip[-1] == match[-1]))) in LZ4_compress_generic_validated()
1346 match--; in LZ4_compress_generic_validated()
1409 DEBUGLOG(6, " with offset=%u (same segment)", (U32)(ip - match)); in LZ4_compress_generic_validated()
1410 assert(ip - match <= LZ4_DISTANCE_MAX); in LZ4_compress_generic_validated()
1411 LZ4_writeLE16(op, (U16)(ip - match)); in LZ4_compress_generic_validated()
1421 const BYTE *limit = ip + (dictEnd - match); in LZ4_compress_generic_validated()
1422 assert(dictEnd > match); in LZ4_compress_generic_validated()
1425 matchCode = LZ4_count(ip + MINMATCH, match + MINMATCH, limit); in LZ4_compress_generic_validated()
1437 matchCode = LZ4_count(ip + MINMATCH, match + MINMATCH, matchlimit); in LZ4_compress_generic_validated()
1507 match = LZ4_getPosition(ip, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated()
1509 if ((match + LZ4_DISTANCE_MAX >= ip) && (LZ4_read32(match) == LZ4_read32(ip))) in LZ4_compress_generic_validated()
1529 match = dictBase + matchIndex; in LZ4_compress_generic_validated()
1535 match = base + matchIndex; in LZ4_compress_generic_validated()
1543 match = dictBase + matchIndex; in LZ4_compress_generic_validated()
1548 match = base + matchIndex; in LZ4_compress_generic_validated()
1554 match = base + matchIndex; in LZ4_compress_generic_validated()
1558 …TE_MAX)) ? 1 : (matchIndex + LZ4_DISTANCE_MAX >= current)) && (LZ4_read32(match) == LZ4_read32(ip)… in LZ4_compress_generic_validated()
2253 const BYTE *match; in LZ4_decompress_generic() local
2372 match = op - offset; in LZ4_decompress_generic()
2373 assert(match <= op); in LZ4_decompress_generic()
2381 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) in LZ4_decompress_generic()
2409 if ((dict == withPrefix64k) || (match >= lowPrefix)) in LZ4_decompress_generic()
2413 assert(match >= lowPrefix); in LZ4_decompress_generic()
2414 assert(match <= op); in LZ4_decompress_generic()
2417 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
2418 LZ4_memcpy(op + 8, match + 8, 8); in LZ4_decompress_generic()
2419 LZ4_memcpy(op + 16, match + 16, 2); in LZ4_decompress_generic()
2426 if (checkOffset && (unlikely(match + dictSize < lowPrefix))) in LZ4_decompress_generic()
2431 if ((dict == usingExtDict) && (match < lowPrefix)) in LZ4_decompress_generic()
2446 if (length <= (size_t)(lowPrefix - match)) in LZ4_decompress_generic()
2449 memmove(op, dictEnd - (lowPrefix - match), length); in LZ4_decompress_generic()
2455 size_t const copySize = (size_t)(lowPrefix - match); in LZ4_decompress_generic()
2483 LZ4_memcpy_using_offset(op, match, cpy, offset); in LZ4_decompress_generic()
2487 LZ4_wildCopy32(op, match, cpy); in LZ4_decompress_generic()
2526 match = op - offset; in LZ4_decompress_generic()
2527 assert(match <= op); /* check overflow */ in LZ4_decompress_generic()
2530 … if ((length != ML_MASK) && (offset >= 8) && (dict == withPrefix64k || match >= lowPrefix)) in LZ4_decompress_generic()
2533 LZ4_memcpy(op + 0, match + 0, 8); in LZ4_decompress_generic()
2534 LZ4_memcpy(op + 8, match + 8, 8); in LZ4_decompress_generic()
2535 LZ4_memcpy(op + 16, match + 16, 2); in LZ4_decompress_generic()
2649 match = op - offset; in LZ4_decompress_generic()
2669 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) in LZ4_decompress_generic()
2672 if ((dict == usingExtDict) && (match < lowPrefix)) in LZ4_decompress_generic()
2682 if (length <= (size_t)(lowPrefix - match)) in LZ4_decompress_generic()
2685 memmove(op, dictEnd - (lowPrefix - match), length); in LZ4_decompress_generic()
2691 size_t const copySize = (size_t)(lowPrefix - match); in LZ4_decompress_generic()
2710 assert(match >= lowPrefix); in LZ4_decompress_generic()
2720 const BYTE *const matchEnd = match + mlen; in LZ4_decompress_generic()
2726 *op++ = *match++; in LZ4_decompress_generic()
2731 LZ4_memcpy(op, match, mlen); in LZ4_decompress_generic()
2744 op[0] = match[0]; in LZ4_decompress_generic()
2745 op[1] = match[1]; in LZ4_decompress_generic()
2746 op[2] = match[2]; in LZ4_decompress_generic()
2747 op[3] = match[3]; in LZ4_decompress_generic()
2748 match += inc32table[offset]; in LZ4_decompress_generic()
2749 LZ4_memcpy(op + 4, match, 4); in LZ4_decompress_generic()
2750 match -= dec64table[offset]; in LZ4_decompress_generic()
2754 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
2755 match += 8; in LZ4_decompress_generic()
2768 LZ4_wildCopy8(op, match, oCopyLimit); in LZ4_decompress_generic()
2769 match += oCopyLimit - op; in LZ4_decompress_generic()
2774 *op++ = *match++; in LZ4_decompress_generic()
2779 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
2782 LZ4_wildCopy8(op + 8, match + 8, cpy); in LZ4_decompress_generic()