Lines Matching refs:ref
58 const BYTE *ref; in lz4_uncompress() local
100 LZ4_READ_LITTLEENDIAN_16(ref, cpy, ip); in lz4_uncompress()
104 if (unlikely(ref < (BYTE *const) dest)) in lz4_uncompress()
118 if (unlikely((op - ref) < STEPSIZE)) { in lz4_uncompress()
120 int dec64 = dec64table[op - ref]; in lz4_uncompress()
124 op[0] = ref[0]; in lz4_uncompress()
125 op[1] = ref[1]; in lz4_uncompress()
126 op[2] = ref[2]; in lz4_uncompress()
127 op[3] = ref[3]; in lz4_uncompress()
129 ref += 4; in lz4_uncompress()
130 ref -= dec32table[op-ref]; in lz4_uncompress()
131 PUT4(ref, op); in lz4_uncompress()
133 ref -= dec64; in lz4_uncompress()
135 LZ4_COPYSTEP(ref, op); in lz4_uncompress()
144 if ((ref + COPYLENGTH) > oend) in lz4_uncompress()
146 if ((ref + COPYLENGTH) > oend || in lz4_uncompress()
150 LZ4_SECURECOPY(ref, op, (oend - COPYLENGTH)); in lz4_uncompress()
152 *op++ = *ref++; in lz4_uncompress()
162 LZ4_SECURECOPY(ref, op, cpy); in lz4_uncompress()
178 const BYTE *ref; in lz4_uncompress_unknownoutputsize() local
226 LZ4_READ_LITTLEENDIAN_16(ref, cpy, ip); in lz4_uncompress_unknownoutputsize()
228 if (ref < (BYTE * const) dest) in lz4_uncompress_unknownoutputsize()
250 if (unlikely((op - ref) < STEPSIZE)) { in lz4_uncompress_unknownoutputsize()
252 int dec64 = dec64table[op - ref]; in lz4_uncompress_unknownoutputsize()
256 op[0] = ref[0]; in lz4_uncompress_unknownoutputsize()
257 op[1] = ref[1]; in lz4_uncompress_unknownoutputsize()
258 op[2] = ref[2]; in lz4_uncompress_unknownoutputsize()
259 op[3] = ref[3]; in lz4_uncompress_unknownoutputsize()
261 ref += 4; in lz4_uncompress_unknownoutputsize()
262 ref -= dec32table[op - ref]; in lz4_uncompress_unknownoutputsize()
263 PUT4(ref, op); in lz4_uncompress_unknownoutputsize()
265 ref -= dec64; in lz4_uncompress_unknownoutputsize()
267 LZ4_COPYSTEP(ref, op); in lz4_uncompress_unknownoutputsize()
274 if ((ref + COPYLENGTH) > oend) in lz4_uncompress_unknownoutputsize()
276 if ((ref + COPYLENGTH) > oend || in lz4_uncompress_unknownoutputsize()
280 LZ4_SECURECOPY(ref, op, (oend - COPYLENGTH)); in lz4_uncompress_unknownoutputsize()
282 *op++ = *ref++; in lz4_uncompress_unknownoutputsize()
292 LZ4_SECURECOPY(ref, op, cpy); in lz4_uncompress_unknownoutputsize()