Lines Matching refs:ref

555 		const BYTE *ref;  in LZ4_compressCtx()  local
570 ref = base + HashTable[h]; in LZ4_compressCtx()
573 } while ((ref < ip - MAX_DISTANCE) || (A32(ref) != A32(ip))); in LZ4_compressCtx()
576 while ((ip > anchor) && (ref > (BYTE *) source) && in LZ4_compressCtx()
577 unlikely(ip[-1] == ref[-1])) { in LZ4_compressCtx()
579 ref--; in LZ4_compressCtx()
605 LZ4_WRITE_LITTLEENDIAN_16(op, ip - ref); in LZ4_compressCtx()
609 ref += MINMATCH; /* MinMatch verified */ in LZ4_compressCtx()
612 UARCH diff = AARCH(ref) ^ AARCH(ip); in LZ4_compressCtx()
615 ref += STEPSIZE; in LZ4_compressCtx()
622 if ((ip < (matchlimit - 3)) && (A32(ref) == A32(ip))) { in LZ4_compressCtx()
624 ref += 4; in LZ4_compressCtx()
627 if ((ip < (matchlimit - 1)) && (A16(ref) == A16(ip))) { in LZ4_compressCtx()
629 ref += 2; in LZ4_compressCtx()
631 if ((ip < matchlimit) && (*ref == *ip)) in LZ4_compressCtx()
664 ref = base + HashTable[LZ4_HASH_VALUE(ip)]; in LZ4_compressCtx()
666 if ((ref > ip - (MAX_DISTANCE + 1)) && (A32(ref) == A32(ip))) { in LZ4_compressCtx()
748 const BYTE *ref; in LZ4_compress64kCtx() local
763 ref = base + HashTable[h]; in LZ4_compress64kCtx()
766 } while (A32(ref) != A32(ip)); in LZ4_compress64kCtx()
769 while ((ip > anchor) && (ref > (BYTE *) source) && in LZ4_compress64kCtx()
770 (ip[-1] == ref[-1])) { in LZ4_compress64kCtx()
772 ref--; in LZ4_compress64kCtx()
798 LZ4_WRITE_LITTLEENDIAN_16(op, ip - ref); in LZ4_compress64kCtx()
802 ref += MINMATCH; /* MinMatch verified */ in LZ4_compress64kCtx()
805 UARCH diff = AARCH(ref) ^ AARCH(ip); in LZ4_compress64kCtx()
808 ref += STEPSIZE; in LZ4_compress64kCtx()
815 if ((ip < (matchlimit - 3)) && (A32(ref) == A32(ip))) { in LZ4_compress64kCtx()
817 ref += 4; in LZ4_compress64kCtx()
820 if ((ip < (matchlimit - 1)) && (A16(ref) == A16(ip))) { in LZ4_compress64kCtx()
822 ref += 2; in LZ4_compress64kCtx()
824 if ((ip < matchlimit) && (*ref == *ip)) in LZ4_compress64kCtx()
857 ref = base + HashTable[LZ4_HASH64K_VALUE(ip)]; in LZ4_compress64kCtx()
859 if (A32(ref) == A32(ip)) { in LZ4_compress64kCtx()
937 const BYTE *ref; in real_LZ4_uncompress() local
979 LZ4_READ_LITTLEENDIAN_16(ref, cpy, ip); in real_LZ4_uncompress()
981 if unlikely(ref < (BYTE * const) dest) in real_LZ4_uncompress()
996 if unlikely(op - ref < STEPSIZE) { in real_LZ4_uncompress()
998 size_t dec64 = dec64table[op-ref]; in real_LZ4_uncompress()
1002 op[0] = ref[0]; in real_LZ4_uncompress()
1003 op[1] = ref[1]; in real_LZ4_uncompress()
1004 op[2] = ref[2]; in real_LZ4_uncompress()
1005 op[3] = ref[3]; in real_LZ4_uncompress()
1007 ref += 4; in real_LZ4_uncompress()
1008 ref -= dec32table[op-ref]; in real_LZ4_uncompress()
1009 A32(op) = A32(ref); in real_LZ4_uncompress()
1011 ref -= dec64; in real_LZ4_uncompress()
1013 LZ4_COPYSTEP(ref, op); in real_LZ4_uncompress()
1023 LZ4_SECURECOPY(ref, op, (oend - COPYLENGTH)); in real_LZ4_uncompress()
1025 *op++ = *ref++; in real_LZ4_uncompress()
1035 LZ4_SECURECOPY(ref, op, cpy); in real_LZ4_uncompress()
1054 const BYTE *ref; in LZ4_uncompress_unknownOutputSize() local
1105 LZ4_READ_LITTLEENDIAN_16(ref, cpy, ip); in LZ4_uncompress_unknownOutputSize()
1107 if (ref < (BYTE * const) dest) in LZ4_uncompress_unknownOutputSize()
1125 if unlikely(op - ref < STEPSIZE) { in LZ4_uncompress_unknownOutputSize()
1127 size_t dec64 = dec64table[op-ref]; in LZ4_uncompress_unknownOutputSize()
1131 op[0] = ref[0]; in LZ4_uncompress_unknownOutputSize()
1132 op[1] = ref[1]; in LZ4_uncompress_unknownOutputSize()
1133 op[2] = ref[2]; in LZ4_uncompress_unknownOutputSize()
1134 op[3] = ref[3]; in LZ4_uncompress_unknownOutputSize()
1136 ref += 4; in LZ4_uncompress_unknownOutputSize()
1137 ref -= dec32table[op-ref]; in LZ4_uncompress_unknownOutputSize()
1138 A32(op) = A32(ref); in LZ4_uncompress_unknownOutputSize()
1140 ref -= dec64; in LZ4_uncompress_unknownOutputSize()
1142 LZ4_COPYSTEP(ref, op); in LZ4_uncompress_unknownOutputSize()
1152 LZ4_SECURECOPY(ref, op, (oend - COPYLENGTH)); in LZ4_uncompress_unknownOutputSize()
1154 *op++ = *ref++; in LZ4_uncompress_unknownOutputSize()
1164 LZ4_SECURECOPY(ref, op, cpy); in LZ4_uncompress_unknownOutputSize()