Lines Matching defs:offset

475 LZ4_memcpy_using_offset_base(BYTE* dstPtr, const BYTE* srcPtr, BYTE* dstEnd, const size_t offset)
477 assert(srcPtr + offset == dstPtr);
478 if (offset < 8) {
479 LZ4_write32(dstPtr, 0); /* silence an msan warning when offset==0 */
484 srcPtr += inc32table[offset];
486 srcPtr -= dec64table[offset];
514 LZ4_memcpy_using_offset(BYTE* dstPtr, const BYTE* srcPtr, BYTE* dstEnd, const size_t offset)
520 switch(offset) {
541 LZ4_memcpy_using_offset_base(dstPtr, srcPtr, dstEnd, offset);
955 U32 offset = 0;
1061 DEBUGLOG(7, "candidate at pos=%u (offset=%u \n", matchIndex, current - matchIndex);
1071 if (maybe_extMem) offset = current - matchIndex;
1090 (unlikely(op + (litLength+240)/255 /* litlen */ + litLength /* literals */ + 2 /* offset */ + 1 /* token */ + MFLIMIT - MINMATCH /* min last literals so last match is <= end - MFLIMIT */ > olimit))) {
1113 * - offset : if maybe_ext_memSegment==1 (constant)
1119 (op + 2 /* offset */ + 1 /* token */ + MFLIMIT - MINMATCH /* min last literals so last match is <= end - MFLIMIT */ > olimit)) {
1127 DEBUGLOG(6, " with offset=%u (ext if > %i)", offset, (int)(ip - (const BYTE*)source));
1128 assert(offset <= LZ4_DISTANCE_MAX && offset > 0);
1129 LZ4_writeLE16(op, (U16)offset); op+=2;
1131 DEBUGLOG(6, " with offset=%u (same segment)", (U32)(ip - match));
1254 if (maybe_extMem) offset = current - matchIndex;
1557 /* We always increment the offset by 64 KB, since, if the dict is longer,
1593 /* If the current offset is zero, we will never look in the
1596 * to bump the offset to something non-zero.
1837 size_t const offset = LZ4_readLE16(ip);
1848 { const BYTE* match = op - offset;
1851 if (offset > (size_t)(op - prefixStart) + dictSize) {
1852 DEBUGLOG(6, "offset out of range");
1857 if (offset > (size_t)(op - prefixStart)) {
1860 const BYTE* extMatch = dictEnd - (offset - (size_t)(op-prefixStart));
1965 const BYTE* const shortiend = iend - 14 /*maxLL*/ - 2 /*offset*/;
1969 size_t offset;
2021 if (ip > iend-(16 + 1/*max lit + offset + nextToken*/)) { goto safe_literal_copy; }
2027 /* get offset */
2028 offset = LZ4_readLE16(ip); ip+=2;
2029 match = op - offset;
2041 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) { goto _output_error; } /* Error : offset outside buffers */
2053 if (offset >= 8) {
2065 if (checkOffset && (unlikely(match + dictSize < lowPrefix))) { goto _output_error; } /* Error : offset outside buffers */
2102 if (unlikely(offset<16)) {
2103 LZ4_memcpy_using_offset(op, match, cpy, offset);
2138 offset = LZ4_readLE16(ip); ip += 2;
2139 match = op - offset;
2144 && (offset >= 8)
2221 * can't proceed with reading an offset for following match.
2231 /* get offset */
2232 offset = LZ4_readLE16(ip); ip+=2;
2233 match = op - offset;
2250 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) goto _output_error; /* Error : offset outside buffers */
2300 if (unlikely(offset<8)) {
2301 LZ4_write32(op, 0); /* silence msan warning when offset==0 */
2306 match += inc32table[offset];
2308 match -= dec64table[offset];