Home | History | Annotate | Download | only in lib

Lines Matching defs:ip

471     const BYTE* ip = (const BYTE*) source;
474 const BYTE* const lowRefLimit = ip - cctx->dictSize;
479 const BYTE* const iend = ip + inputSize;
510 LZ4_putPosition(ip, cctx->hashTable, tableType, base);
511 ip++; forwardH = LZ4_hashPosition(ip, tableType);
520 { const BYTE* forwardIp = ip;
525 ip = forwardIp;
541 LZ4_putPositionOnHash(ip, h, cctx->hashTable, tableType, base);
544 || ((tableType==byU16) ? 0 : (match + MAX_DISTANCE < ip))
545 || (LZ4_read32(match+refDelta) != LZ4_read32(ip)) );
549 while (((ip>anchor) & (match+refDelta > lowLimit)) && (unlikely(ip[-1]==match[refDelta-1]))) { ip--; match--; }
552 { unsigned const litLength = (unsigned)(ip - anchor);
572 LZ4_writeLE16(op, (U16)(ip-match)); op+=2;
580 limit = ip + (dictEnd-match);
582 matchCode = LZ4_count(ip+MINMATCH, match+MINMATCH, limit);
583 ip += MINMATCH + matchCode;
584 if (ip==limit) {
585 unsigned const more = LZ4_count(ip, (const BYTE*)source, matchlimit);
587 ip += more;
590 matchCode = LZ4_count(ip+MINMATCH, match+MINMATCH, matchlimit);
591 ip += MINMATCH + matchCode;
608 anchor = ip;
611 if (ip > mflimit) break;
614 LZ4_putPosition(ip-2, cctx->hashTable, tableType, base);
617 match = LZ4_getPosition(ip, cctx->hashTable, tableType, base);
626 LZ4_putPosition(ip, cctx->hashTable, tableType, base);
628 && (match+MAX_DISTANCE>=ip)
629 && (LZ4_read32(match+refDelta)==LZ4_read32(ip)) )
633 forwardH = LZ4_hashPosition(++ip, tableType);
729 const BYTE* ip = (const BYTE*) src;
732 const BYTE* anchor = ip;
733 const BYTE* const iend = ip + *srcSizePtr;
754 LZ4_putPosition(ip, ctx->hashTable, tableType, base);
755 ip++; forwardH = LZ4_hashPosition(ip, tableType);
763 { const BYTE* forwardIp = ip;
769 ip = forwardIp;
777 LZ4_putPositionOnHash(ip, h, ctx->hashTable, tableType, base);
779 } while ( ((tableType==byU16) ? 0 : (match + MAX_DISTANCE < ip))
780 || (LZ4_read32(match) != LZ4_read32(ip)) );
784 while ((ip>anchor) && (match > lowLimit) && (unlikely(ip[-1]==match[-1]))) { ip--; match--; }
787 { unsigned litLength = (unsigned)(ip - anchor);
809 LZ4_writeLE16(op, (U16)(ip-match)); op+=2;
812 { size_t matchLength = LZ4_count(ip+MINMATCH, match+MINMATCH, matchlimit);
818 ip += MINMATCH + matchLength;
829 anchor = ip;
832 if (ip > mflimit) break;
836 LZ4_putPosition(ip-2, ctx->hashTable, tableType, base);
839 match = LZ4_getPosition(ip, ctx->hashTable, tableType, base);
840 LZ4_putPosition(ip, ctx->hashTable, tableType, base);
841 if ( (match+MAX_DISTANCE>=ip)
842 && (LZ4_read32(match)==LZ4_read32(ip)) )
846 forwardH = LZ4_hashPosition(++ip, tableType);
857 ip = anchor + lastRunSize;
872 *srcSizePtr = (int) (((const char*)ip)-src);
1105 const BYTE* ip = (const BYTE*) source;
1106 const BYTE* const iend = ip + inputSize;
1124 if ((endOnInput) && (unlikely(outputSize==0))) return ((inputSize==1) && (*ip==0)) ? 0 : -1; /* Empty output buffer */
1125 if ((!endOnInput) && (unlikely(outputSize==0))) return (*ip==0?1:-1);
1134 unsigned const token = *ip++;
1138 s = *ip++;
1140 } while ( likely(endOnInput ? ip<iend-RUN_MASK : 1) & (s==255) );
1142 if ((safeDecode) && unlikely((uptrval)(ip)+length<(uptrval)(ip))) goto _output_error; /* overflow detection */
1147 if ( ((endOnInput) && ((cpy>(partialDecoding?oexit:oend-MFLIMIT)) || (ip+length>iend-(2+1+LASTLITERALS))) )
1152 if ((endOnInput) && (ip+length > iend)) goto _output_error; /* Error : read attempt beyond end of input buffer */
1155 if ((endOnInput) && ((ip+length != iend) || (cpy > oend))) goto _output_error; /* Error : input must be consumed */
1157 memcpy(op, ip, length);
1158 ip += length;
1162 LZ4_wildCopy(op, ip, cpy);
1163 ip += length; op = cpy;
1166 offset = LZ4_readLE16(ip); ip+=2;
1176 s = *ip++;
1177 if ((endOnInput) && (ip > iend-LASTLITERALS)) goto _output_error;
1243 return (int) (((const char*)ip)-source); /* Nb of input bytes read */
1247 return (int) (-(((const char*)ip)-source))-1;