Lines Matching refs:ip

1156     const BYTE *ip = (const BYTE *)source;  in LZ4_compress_generic_validated()  local
1173 const BYTE *const iend = ip + inputSize; in LZ4_compress_generic_validated()
1189 assert(ip != NULL); in LZ4_compress_generic_validated()
1225 LZ4_putPosition(ip, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated()
1226 ip++; in LZ4_compress_generic_validated()
1227 forwardH = LZ4_hashPosition(ip, tableType); in LZ4_compress_generic_validated()
1239 const BYTE *forwardIp = ip; in LZ4_compress_generic_validated()
1245 ip = forwardIp; in LZ4_compress_generic_validated()
1251 assert(ip < mflimitPlusOne); in LZ4_compress_generic_validated()
1255 LZ4_putPositionOnHash(ip, 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()
1262 const BYTE *forwardIp = ip; in LZ4_compress_generic_validated()
1272 ip = forwardIp; in LZ4_compress_generic_validated()
1278 assert(ip < mflimitPlusOne); in LZ4_compress_generic_validated()
1331 if (LZ4_read32(match) == LZ4_read32(ip)) in LZ4_compress_generic_validated()
1342 filledIp = ip; in LZ4_compress_generic_validated()
1343 while (((ip > anchor) & (match > lowLimit)) && (unlikely(ip[-1] == match[-1]))) in LZ4_compress_generic_validated()
1345 ip--; in LZ4_compress_generic_validated()
1351 unsigned const litLength = (unsigned)(ip - anchor); in LZ4_compress_generic_validated()
1379 … (int)(anchor - (const BYTE *)source), litLength, (int)(ip - (const BYTE *)source)); in LZ4_compress_generic_validated()
1402 …DEBUGLOG(6, " with offset=%u (ext if > %i)", offset, (int)(ip - (const BYTE *)source)… 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()
1425 matchCode = LZ4_count(ip + MINMATCH, match + MINMATCH, limit); in LZ4_compress_generic_validated()
1426 ip += (size_t)matchCode + MINMATCH; in LZ4_compress_generic_validated()
1427 if (ip == limit) in LZ4_compress_generic_validated()
1431 ip += more; in LZ4_compress_generic_validated()
1437 matchCode = LZ4_count(ip + MINMATCH, match + MINMATCH, matchlimit); in LZ4_compress_generic_validated()
1438 ip += (size_t)matchCode + MINMATCH; in LZ4_compress_generic_validated()
1449 ip -= matchCode - newMatchCode; in LZ4_compress_generic_validated()
1452 if (unlikely(ip <= filledIp)) in LZ4_compress_generic_validated()
1460 DEBUGLOG(5, "Clearing %u positions", (U32)(filledIp - ip)); in LZ4_compress_generic_validated()
1461 for (ptr = ip; ptr <= filledIp; ++ptr) in LZ4_compress_generic_validated()
1494 anchor = ip; in LZ4_compress_generic_validated()
1497 if (ip >= mflimitPlusOne) in LZ4_compress_generic_validated()
1501 LZ4_putPosition(ip - 2, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated()
1507 match = LZ4_getPosition(ip, cctx->hashTable, tableType, base); in LZ4_compress_generic_validated()
1508 LZ4_putPosition(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()
1519 U32 const h = LZ4_hashPosition(ip, tableType); in LZ4_compress_generic_validated()
1520 U32 const current = (U32)(ip - base); in LZ4_compress_generic_validated()
1558 …E_MAX)) ? 1 : (matchIndex + LZ4_DISTANCE_MAX >= current)) && (LZ4_read32(match) == LZ4_read32(ip))) in LZ4_compress_generic_validated()
1565 (int)(anchor - (const BYTE *)source), 0, (int)(ip - (const BYTE *)source)); in LZ4_compress_generic_validated()
1571 forwardH = LZ4_hashPosition(++ip, tableType); in LZ4_compress_generic_validated()
1608 ip = anchor + lastRun; in LZ4_compress_generic_validated()
1614 *inputConsumed = (int)(((const char *)ip) - source); in LZ4_compress_generic_validated()
2184 read_variable_length(const BYTE **ip, const BYTE *lencheck, in read_variable_length() argument
2190 if (initial_check && unlikely((*ip) >= lencheck)) in read_variable_length()
2197 s = **ip; in read_variable_length()
2198 (*ip)++; in read_variable_length()
2200 if (loop_check && unlikely((*ip) >= lencheck)) in read_variable_length()
2237 const BYTE *ip = (const BYTE *)src; in LZ4_decompress_generic() local
2238 const BYTE *const iend = ip + srcSize; in LZ4_decompress_generic()
2267 return ((srcSize == 1) && (*ip == 0)) ? 0 : -1; in LZ4_decompress_generic()
2271 return (*ip == 0 ? 1 : -1); in LZ4_decompress_generic()
2293 assert(ip < iend); in LZ4_decompress_generic()
2295 token = *ip++; in LZ4_decompress_generic()
2298 assert(!endOnInput || ip <= iend); /* ip < iend before the increment */ in LZ4_decompress_generic()
2304 … length += read_variable_length(&ip, iend - RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
2313 if ((safeDecode) && unlikely((uptrval)(ip) + length < (uptrval)(ip))) in LZ4_decompress_generic()
2323 if ((cpy > oend - 32) || (ip + length > iend - 32)) in LZ4_decompress_generic()
2327 LZ4_wildCopy32(op, ip, cpy); in LZ4_decompress_generic()
2335 … LZ4_wildCopy8(op, ip, cpy); /* LZ4_decompress_fast() cannot copy more than 8 bytes at a time : in LZ4_decompress_generic()
2338 ip += length; in LZ4_decompress_generic()
2348 if (ip > iend - (16 + 1 /*max lit + offset + nextToken*/)) in LZ4_decompress_generic()
2353 LZ4_memcpy(op, ip, 16); in LZ4_decompress_generic()
2359 LZ4_memcpy(op, ip, 8); in LZ4_decompress_generic()
2362 LZ4_memcpy(op + 8, ip + 8, 8); in LZ4_decompress_generic()
2365 ip += length; in LZ4_decompress_generic()
2370 offset = LZ4_readLE16(ip); in LZ4_decompress_generic()
2371 ip += 2; in LZ4_decompress_generic()
2385 … length += read_variable_length(&ip, iend - LASTLITERALS + 1, (int)endOnInput, 0, &error); in LZ4_decompress_generic()
2498 token = *ip++; in LZ4_decompress_generic()
2501 assert(!endOnInput || ip <= iend); /* ip < iend before the increment */ in LZ4_decompress_generic()
2514 && likely((endOnInput ? ip < shortiend : 1) & (op <= shortoend))) in LZ4_decompress_generic()
2517 LZ4_memcpy(op, ip, endOnInput ? 16 : 8); in LZ4_decompress_generic()
2519 ip += length; in LZ4_decompress_generic()
2524 offset = LZ4_readLE16(ip); in LZ4_decompress_generic()
2525 ip += 2; in LZ4_decompress_generic()
2550 … length += read_variable_length(&ip, iend - RUN_MASK, (int)endOnInput, (int)endOnInput, &error); in LZ4_decompress_generic()
2559 if ((safeDecode) && unlikely((uptrval)(ip) + length < (uptrval)(ip))) in LZ4_decompress_generic()
2571 …if (((endOnInput) && ((cpy > oend - MFLIMIT) || (ip + length > iend - (2 + 1 + LASTLITERALS)))) ||… in LZ4_decompress_generic()
2587 … DEBUGLOG(7, "partialDecoding: remaining space in srcBuffer : %i", (int)(iend - ip)); in LZ4_decompress_generic()
2591 if (ip + length > iend) in LZ4_decompress_generic()
2593 length = (size_t)(iend - ip); in LZ4_decompress_generic()
2618 if ((endOnInput) && ((ip + length != iend) || (cpy > oend))) in LZ4_decompress_generic()
2621 … DEBUGLOG(6, "ip(%p) + length(%i) = %p != iend (%p)", ip, (int)length, ip + length, iend); in LZ4_decompress_generic()
2626 …memmove(op, ip, length); /* supports overlapping memory regions; only matters for in-place decompr… in LZ4_decompress_generic()
2627 ip += length; in LZ4_decompress_generic()
2634 if (!partialDecoding || (cpy == oend) || (ip >= (iend - 2))) in LZ4_decompress_generic()
2641 LZ4_wildCopy8(op, ip, cpy); /* may overwrite up to WILDCOPYLENGTH beyond cpy */ in LZ4_decompress_generic()
2642 ip += length; in LZ4_decompress_generic()
2647 offset = LZ4_readLE16(ip); in LZ4_decompress_generic()
2648 ip += 2; in LZ4_decompress_generic()
2658 … length += read_variable_length(&ip, iend - LASTLITERALS + 1, (int)endOnInput, 0, &error); in LZ4_decompress_generic()
2796 return (int)(((const char *)ip) - src); /* Nb of input bytes read */ in LZ4_decompress_generic()
2801 return (int)(-(((const char *)ip) - src)) - 1; in LZ4_decompress_generic()