Lines Matching refs:op
550 BYTE* op = (BYTE*) dst; in LZ4_decompress_generic() local
551 BYTE* const oend = op + outputSize; in LZ4_decompress_generic()
573 assert(lowPrefix <= op); in LZ4_decompress_generic()
584 if ((oend - op) < FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
592 assert(oend - op >= FASTLOOP_SAFE_DISTANCE); in LZ4_decompress_generic()
604 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
608 cpy = op+length; in LZ4_decompress_generic()
612 LZ4_wildCopy32(op, ip, cpy); in LZ4_decompress_generic()
615 … LZ4_wildCopy8(op, ip, cpy); /* LZ4_decompress_fast() cannot copy more than 8 bytes at a time : in LZ4_decompress_generic()
618 ip += length; op = cpy; in LZ4_decompress_generic()
620 cpy = op+length; in LZ4_decompress_generic()
626 LZ4_memcpy(op, ip, 16); in LZ4_decompress_generic()
630 LZ4_memcpy(op, ip, 8); in LZ4_decompress_generic()
631 if (length > 8) { LZ4_memcpy(op+8, ip+8, 8); } in LZ4_decompress_generic()
633 ip += length; op = cpy; in LZ4_decompress_generic()
638 match = op - offset; in LZ4_decompress_generic()
639 assert(match <= op); in LZ4_decompress_generic()
649 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)op)) { goto _output_error; } /* overflo… in LZ4_decompress_generic()
651 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
656 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
664 assert(match <= op); in LZ4_decompress_generic()
665 assert(op + 18 <= oend); in LZ4_decompress_generic()
667 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
668 LZ4_memcpy(op+8, match+8, 8); in LZ4_decompress_generic()
669 LZ4_memcpy(op+16, match+16, 2); in LZ4_decompress_generic()
670 op += length; in LZ4_decompress_generic()
677 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
680 length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
687 memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
688 op += length; in LZ4_decompress_generic()
693 LZ4_memcpy(op, dictEnd - copySize, copySize); in LZ4_decompress_generic()
694 op += copySize; in LZ4_decompress_generic()
695 if (restSize > (size_t)(op - lowPrefix)) { /* overlap copy */ in LZ4_decompress_generic()
696 BYTE* const endOfMatch = op + restSize; in LZ4_decompress_generic()
698 while (op < endOfMatch) { *op++ = *copyFrom++; } in LZ4_decompress_generic()
700 LZ4_memcpy(op, lowPrefix, restSize); in LZ4_decompress_generic()
701 op += restSize; in LZ4_decompress_generic()
707 cpy = op + length; in LZ4_decompress_generic()
709 assert((op <= oend) && (oend-op >= 32)); in LZ4_decompress_generic()
711 LZ4_memcpy_using_offset(op, match, cpy, offset); in LZ4_decompress_generic()
713 LZ4_wildCopy32(op, match, cpy); in LZ4_decompress_generic()
716 op = cpy; /* wildcopy correction */ in LZ4_decompress_generic()
739 && likely((endOnInput ? ip < shortiend : 1) & (op <= shortoend)) ) { in LZ4_decompress_generic()
741 LZ4_memcpy(op, ip, endOnInput ? 16 : 8); in LZ4_decompress_generic()
742 op += length; ip += length; in LZ4_decompress_generic()
748 match = op - offset; in LZ4_decompress_generic()
749 assert(match <= op); /* check overflow */ in LZ4_decompress_generic()
756 LZ4_memcpy(op + 0, match + 0, 8); in LZ4_decompress_generic()
757 LZ4_memcpy(op + 8, match + 8, 8); in LZ4_decompress_generic()
758 LZ4_memcpy(op +16, match +16, 2); in LZ4_decompress_generic()
759 op += length + MINMATCH; in LZ4_decompress_generic()
774 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
779 cpy = op+length; in LZ4_decompress_generic()
799 … DEBUGLOG(7, "partialDecoding: remaining space in dstBuffer : %i", (int)(oend - op)); in LZ4_decompress_generic()
806 cpy = op + length; in LZ4_decompress_generic()
813 assert(op<=oend); in LZ4_decompress_generic()
814 length = (size_t)(oend-op); in LZ4_decompress_generic()
831 …memmove(op, ip, length); /* supports overlapping memory regions; only matters for in-place decomp… in LZ4_decompress_generic()
833 op += length; in LZ4_decompress_generic()
843 LZ4_wildCopy8(op, ip, cpy); /* may overwrite up to WILDCOPYLENGTH beyond cpy */ in LZ4_decompress_generic()
844 ip += length; op = cpy; in LZ4_decompress_generic()
849 match = op - offset; in LZ4_decompress_generic()
859 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)op)) goto _output_error; /* overflow … in LZ4_decompress_generic()
869 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
870 if (partialDecoding) length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
876 memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
877 op += length; in LZ4_decompress_generic()
882 LZ4_memcpy(op, dictEnd - copySize, copySize); in LZ4_decompress_generic()
883 op += copySize; in LZ4_decompress_generic()
884 if (restSize > (size_t)(op - lowPrefix)) { /* overlap copy */ in LZ4_decompress_generic()
885 BYTE* const endOfMatch = op + restSize; in LZ4_decompress_generic()
887 while (op < endOfMatch) *op++ = *copyFrom++; in LZ4_decompress_generic()
889 LZ4_memcpy(op, lowPrefix, restSize); in LZ4_decompress_generic()
890 op += restSize; in LZ4_decompress_generic()
897 cpy = op + length; in LZ4_decompress_generic()
900 assert(op<=oend); in LZ4_decompress_generic()
902 size_t const mlen = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
904 BYTE* const copyEnd = op + mlen; in LZ4_decompress_generic()
905 if (matchEnd > op) { /* overlap copy */ in LZ4_decompress_generic()
906 while (op < copyEnd) { *op++ = *match++; } in LZ4_decompress_generic()
908 LZ4_memcpy(op, match, mlen); in LZ4_decompress_generic()
910 op = copyEnd; in LZ4_decompress_generic()
911 if (op == oend) { break; } in LZ4_decompress_generic()
916 LZ4_write32(op, 0); /* silence msan warning when offset==0 */ in LZ4_decompress_generic()
917 op[0] = match[0]; in LZ4_decompress_generic()
918 op[1] = match[1]; in LZ4_decompress_generic()
919 op[2] = match[2]; in LZ4_decompress_generic()
920 op[3] = match[3]; in LZ4_decompress_generic()
922 LZ4_memcpy(op+4, match, 4); in LZ4_decompress_generic()
925 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
928 op += 8; in LZ4_decompress_generic()
933 if (op < oCopyLimit) { in LZ4_decompress_generic()
934 LZ4_wildCopy8(op, match, oCopyLimit); in LZ4_decompress_generic()
935 match += oCopyLimit - op; in LZ4_decompress_generic()
936 op = oCopyLimit; in LZ4_decompress_generic()
938 while (op < cpy) { *op++ = *match++; } in LZ4_decompress_generic()
940 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
941 if (length > 16) { LZ4_wildCopy8(op+8, match+8, cpy); } in LZ4_decompress_generic()
943 op = cpy; /* wildcopy correction */ in LZ4_decompress_generic()
948 DEBUGLOG(5, "decoded %i bytes", (int) (((char*)op)-dst)); in LZ4_decompress_generic()
949 return (int) (((char*)op)-dst); /* Nb of output bytes decoded */ in LZ4_decompress_generic()