Lines Matching refs:op
549 BYTE* op = (BYTE*) dst; in LZ4_decompress_generic() local
550 BYTE* const oend = op + outputSize; in LZ4_decompress_generic()
572 assert(lowPrefix <= op); in LZ4_decompress_generic()
583 if ((oend - op) < FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
591 assert(oend - op >= FASTLOOP_SAFE_DISTANCE); in LZ4_decompress_generic()
603 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
607 cpy = op+length; in LZ4_decompress_generic()
611 LZ4_wildCopy32(op, ip, cpy); in LZ4_decompress_generic()
614 … LZ4_wildCopy8(op, ip, cpy); /* LZ4_decompress_fast() cannot copy more than 8 bytes at a time : in LZ4_decompress_generic()
617 ip += length; op = cpy; in LZ4_decompress_generic()
619 cpy = op+length; in LZ4_decompress_generic()
625 LZ4_memcpy(op, ip, 16); in LZ4_decompress_generic()
629 LZ4_memcpy(op, ip, 8); in LZ4_decompress_generic()
630 if (length > 8) { LZ4_memcpy(op+8, ip+8, 8); } in LZ4_decompress_generic()
632 ip += length; op = cpy; in LZ4_decompress_generic()
637 match = op - offset; in LZ4_decompress_generic()
638 assert(match <= op); in LZ4_decompress_generic()
648 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)op)) { goto _output_error; } /* overflo… in LZ4_decompress_generic()
650 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
655 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
663 assert(match <= op); in LZ4_decompress_generic()
664 assert(op + 18 <= oend); in LZ4_decompress_generic()
666 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
667 LZ4_memcpy(op+8, match+8, 8); in LZ4_decompress_generic()
668 LZ4_memcpy(op+16, match+16, 2); in LZ4_decompress_generic()
669 op += length; in LZ4_decompress_generic()
676 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
679 length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
686 memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
687 op += length; in LZ4_decompress_generic()
692 LZ4_memcpy(op, dictEnd - copySize, copySize); in LZ4_decompress_generic()
693 op += copySize; in LZ4_decompress_generic()
694 if (restSize > (size_t)(op - lowPrefix)) { /* overlap copy */ in LZ4_decompress_generic()
695 BYTE* const endOfMatch = op + restSize; in LZ4_decompress_generic()
697 while (op < endOfMatch) { *op++ = *copyFrom++; } in LZ4_decompress_generic()
699 LZ4_memcpy(op, lowPrefix, restSize); in LZ4_decompress_generic()
700 op += restSize; in LZ4_decompress_generic()
706 cpy = op + length; in LZ4_decompress_generic()
708 assert((op <= oend) && (oend-op >= 32)); in LZ4_decompress_generic()
710 LZ4_memcpy_using_offset(op, match, cpy, offset); in LZ4_decompress_generic()
712 LZ4_wildCopy32(op, match, cpy); in LZ4_decompress_generic()
715 op = cpy; /* wildcopy correction */ in LZ4_decompress_generic()
738 && likely((endOnInput ? ip < shortiend : 1) & (op <= shortoend)) ) { in LZ4_decompress_generic()
740 LZ4_memcpy(op, ip, endOnInput ? 16 : 8); in LZ4_decompress_generic()
741 op += length; ip += length; in LZ4_decompress_generic()
747 match = op - offset; in LZ4_decompress_generic()
748 assert(match <= op); /* check overflow */ in LZ4_decompress_generic()
755 LZ4_memcpy(op + 0, match + 0, 8); in LZ4_decompress_generic()
756 LZ4_memcpy(op + 8, match + 8, 8); in LZ4_decompress_generic()
757 LZ4_memcpy(op +16, match +16, 2); in LZ4_decompress_generic()
758 op += length + MINMATCH; in LZ4_decompress_generic()
773 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)(op))) { goto _output_error; } /* overf… in LZ4_decompress_generic()
778 cpy = op+length; in LZ4_decompress_generic()
798 … DEBUGLOG(7, "partialDecoding: remaining space in dstBuffer : %i", (int)(oend - op)); in LZ4_decompress_generic()
805 cpy = op + length; in LZ4_decompress_generic()
812 assert(op<=oend); in LZ4_decompress_generic()
813 length = (size_t)(oend-op); in LZ4_decompress_generic()
830 …memmove(op, ip, length); /* supports overlapping memory regions; only matters for in-place decomp… in LZ4_decompress_generic()
832 op += length; in LZ4_decompress_generic()
842 LZ4_wildCopy8(op, ip, cpy); /* may overwrite up to WILDCOPYLENGTH beyond cpy */ in LZ4_decompress_generic()
843 ip += length; op = cpy; in LZ4_decompress_generic()
848 match = op - offset; in LZ4_decompress_generic()
858 …if ((safeDecode) && unlikely((uptrval)(op)+length<(uptrval)op)) goto _output_error; /* overflow … in LZ4_decompress_generic()
868 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
869 if (partialDecoding) length = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
875 memmove(op, dictEnd - (lowPrefix-match), length); in LZ4_decompress_generic()
876 op += length; in LZ4_decompress_generic()
881 LZ4_memcpy(op, dictEnd - copySize, copySize); in LZ4_decompress_generic()
882 op += copySize; in LZ4_decompress_generic()
883 if (restSize > (size_t)(op - lowPrefix)) { /* overlap copy */ in LZ4_decompress_generic()
884 BYTE* const endOfMatch = op + restSize; in LZ4_decompress_generic()
886 while (op < endOfMatch) *op++ = *copyFrom++; in LZ4_decompress_generic()
888 LZ4_memcpy(op, lowPrefix, restSize); in LZ4_decompress_generic()
889 op += restSize; in LZ4_decompress_generic()
896 cpy = op + length; in LZ4_decompress_generic()
899 assert(op<=oend); in LZ4_decompress_generic()
901 size_t const mlen = MIN(length, (size_t)(oend-op)); in LZ4_decompress_generic()
903 BYTE* const copyEnd = op + mlen; in LZ4_decompress_generic()
904 if (matchEnd > op) { /* overlap copy */ in LZ4_decompress_generic()
905 while (op < copyEnd) { *op++ = *match++; } in LZ4_decompress_generic()
907 LZ4_memcpy(op, match, mlen); in LZ4_decompress_generic()
909 op = copyEnd; in LZ4_decompress_generic()
910 if (op == oend) { break; } in LZ4_decompress_generic()
915 LZ4_write32(op, 0); /* silence msan warning when offset==0 */ in LZ4_decompress_generic()
916 op[0] = match[0]; in LZ4_decompress_generic()
917 op[1] = match[1]; in LZ4_decompress_generic()
918 op[2] = match[2]; in LZ4_decompress_generic()
919 op[3] = match[3]; in LZ4_decompress_generic()
921 LZ4_memcpy(op+4, match, 4); in LZ4_decompress_generic()
924 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
927 op += 8; in LZ4_decompress_generic()
932 if (op < oCopyLimit) { in LZ4_decompress_generic()
933 LZ4_wildCopy8(op, match, oCopyLimit); in LZ4_decompress_generic()
934 match += oCopyLimit - op; in LZ4_decompress_generic()
935 op = oCopyLimit; in LZ4_decompress_generic()
937 while (op < cpy) { *op++ = *match++; } in LZ4_decompress_generic()
939 LZ4_memcpy(op, match, 8); in LZ4_decompress_generic()
940 if (length > 16) { LZ4_wildCopy8(op+8, match+8, cpy); } in LZ4_decompress_generic()
942 op = cpy; /* wildcopy correction */ in LZ4_decompress_generic()
947 DEBUGLOG(5, "decoded %i bytes", (int) (((char*)op)-dst)); in LZ4_decompress_generic()
948 return (int) (((char*)op)-dst); /* Nb of output bytes decoded */ in LZ4_decompress_generic()