Lines Matching defs:ref

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