Lines Matching refs:ip

401 #define	INITBASE(base)		const BYTE* const base = ip
553 const BYTE *ip = (const BYTE *) source; in LZ4_compressCtx() local
555 const BYTE *anchor = ip; in LZ4_compressCtx()
556 const BYTE *const iend = ip + isize; in LZ4_compressCtx()
573 HashTable[LZ4_HASH_VALUE(ip)] = ip - base; in LZ4_compressCtx()
574 ip++; in LZ4_compressCtx()
575 forwardH = LZ4_HASH_VALUE(ip); in LZ4_compressCtx()
580 const BYTE *forwardIp = ip; in LZ4_compressCtx()
588 ip = forwardIp; in LZ4_compressCtx()
589 forwardIp = ip + step; in LZ4_compressCtx()
597 HashTable[h] = ip - base; in LZ4_compressCtx()
599 } while ((ref < ip - MAX_DISTANCE) || (A32(ref) != A32(ip))); in LZ4_compressCtx()
602 while ((ip > anchor) && (ref > (const BYTE *) source) && in LZ4_compressCtx()
603 unlikely(ip[-1] == ref[-1])) { in LZ4_compressCtx()
604 ip--; in LZ4_compressCtx()
609 length = ip - anchor; in LZ4_compressCtx()
631 LZ4_WRITE_LITTLEENDIAN_16(op, ip - ref); in LZ4_compressCtx()
634 ip += MINMATCH; in LZ4_compressCtx()
636 anchor = ip; in LZ4_compressCtx()
637 while likely(ip < matchlimit - (STEPSIZE - 1)) { in LZ4_compressCtx()
638 UARCH diff = AARCH(ref) ^ AARCH(ip); in LZ4_compressCtx()
640 ip += STEPSIZE; in LZ4_compressCtx()
644 ip += LZ4_NbCommonBytes(diff); in LZ4_compressCtx()
648 if ((ip < (matchlimit - 3)) && (A32(ref) == A32(ip))) { in LZ4_compressCtx()
649 ip += 4; in LZ4_compressCtx()
653 if ((ip < (matchlimit - 1)) && (A16(ref) == A16(ip))) { in LZ4_compressCtx()
654 ip += 2; in LZ4_compressCtx()
657 if ((ip < matchlimit) && (*ref == *ip)) in LZ4_compressCtx()
658 ip++; in LZ4_compressCtx()
662 len = (ip - anchor); in LZ4_compressCtx()
682 if (ip > mflimit) { in LZ4_compressCtx()
683 anchor = ip; in LZ4_compressCtx()
687 HashTable[LZ4_HASH_VALUE(ip - 2)] = ip - 2 - base; in LZ4_compressCtx()
690 ref = base + HashTable[LZ4_HASH_VALUE(ip)]; in LZ4_compressCtx()
691 HashTable[LZ4_HASH_VALUE(ip)] = ip - base; in LZ4_compressCtx()
692 if ((ref > ip - (MAX_DISTANCE + 1)) && (A32(ref) == A32(ip))) { in LZ4_compressCtx()
698 anchor = ip++; in LZ4_compressCtx()
699 forwardH = LZ4_HASH_VALUE(ip); in LZ4_compressCtx()
748 const BYTE *ip = (const BYTE *) source; in LZ4_compress64kCtx() local
749 const BYTE *anchor = ip; in LZ4_compress64kCtx()
750 const BYTE *const base = ip; in LZ4_compress64kCtx()
751 const BYTE *const iend = ip + isize; in LZ4_compress64kCtx()
767 ip++; in LZ4_compress64kCtx()
768 forwardH = LZ4_HASH64K_VALUE(ip); in LZ4_compress64kCtx()
773 const BYTE *forwardIp = ip; in LZ4_compress64kCtx()
781 ip = forwardIp; in LZ4_compress64kCtx()
782 forwardIp = ip + step; in LZ4_compress64kCtx()
790 HashTable[h] = ip - base; in LZ4_compress64kCtx()
792 } while (A32(ref) != A32(ip)); in LZ4_compress64kCtx()
795 while ((ip > anchor) && (ref > (const BYTE *) source) && in LZ4_compress64kCtx()
796 (ip[-1] == ref[-1])) { in LZ4_compress64kCtx()
797 ip--; in LZ4_compress64kCtx()
802 length = ip - anchor; in LZ4_compress64kCtx()
824 LZ4_WRITE_LITTLEENDIAN_16(op, ip - ref); in LZ4_compress64kCtx()
827 ip += MINMATCH; in LZ4_compress64kCtx()
829 anchor = ip; in LZ4_compress64kCtx()
830 while (ip < matchlimit - (STEPSIZE - 1)) { in LZ4_compress64kCtx()
831 UARCH diff = AARCH(ref) ^ AARCH(ip); in LZ4_compress64kCtx()
833 ip += STEPSIZE; in LZ4_compress64kCtx()
837 ip += LZ4_NbCommonBytes(diff); in LZ4_compress64kCtx()
841 if ((ip < (matchlimit - 3)) && (A32(ref) == A32(ip))) { in LZ4_compress64kCtx()
842 ip += 4; in LZ4_compress64kCtx()
846 if ((ip < (matchlimit - 1)) && (A16(ref) == A16(ip))) { in LZ4_compress64kCtx()
847 ip += 2; in LZ4_compress64kCtx()
850 if ((ip < matchlimit) && (*ref == *ip)) in LZ4_compress64kCtx()
851 ip++; in LZ4_compress64kCtx()
855 len = (ip - anchor); in LZ4_compress64kCtx()
875 if (ip > mflimit) { in LZ4_compress64kCtx()
876 anchor = ip; in LZ4_compress64kCtx()
880 HashTable[LZ4_HASH64K_VALUE(ip - 2)] = ip - 2 - base; in LZ4_compress64kCtx()
883 ref = base + HashTable[LZ4_HASH64K_VALUE(ip)]; in LZ4_compress64kCtx()
884 HashTable[LZ4_HASH64K_VALUE(ip)] = ip - base; in LZ4_compress64kCtx()
885 if (A32(ref) == A32(ip)) { in LZ4_compress64kCtx()
891 anchor = ip++; in LZ4_compress64kCtx()
892 forwardH = LZ4_HASH64K_VALUE(ip); in LZ4_compress64kCtx()
971 const BYTE *restrict ip = (const BYTE *) source; in LZ4_uncompress_unknownOutputSize() local
972 const BYTE *const iend = ip + isize; in LZ4_uncompress_unknownOutputSize()
985 while (ip < iend) { in LZ4_uncompress_unknownOutputSize()
990 token = *ip++; in LZ4_uncompress_unknownOutputSize()
993 while ((ip < iend) && (s == 255)) { in LZ4_uncompress_unknownOutputSize()
994 s = *ip++; in LZ4_uncompress_unknownOutputSize()
1004 (ip + length > iend - COPYLENGTH)) { in LZ4_uncompress_unknownOutputSize()
1008 if (ip + length != iend) in LZ4_uncompress_unknownOutputSize()
1014 (void) memcpy(op, ip, length); in LZ4_uncompress_unknownOutputSize()
1019 LZ4_WILDCOPY(ip, op, cpy); in LZ4_uncompress_unknownOutputSize()
1020 ip -= (op - cpy); in LZ4_uncompress_unknownOutputSize()
1024 LZ4_READ_LITTLEENDIAN_16(ref, cpy, ip); in LZ4_uncompress_unknownOutputSize()
1025 ip += 2; in LZ4_uncompress_unknownOutputSize()
1035 while (ip < iend) { in LZ4_uncompress_unknownOutputSize()
1036 int s = *ip++; in LZ4_uncompress_unknownOutputSize()
1092 return (int)(-(((const char *)ip) - source)); in LZ4_uncompress_unknownOutputSize()