Lines Matching refs:ref

126 	const u8 *ref;  in lz4hc_insertandfindbestmatch()  local
138 ref = hashtable[HASH_VALUE(ip)] + base; in lz4hc_insertandfindbestmatch()
141 if (ref >= ip-4) { in lz4hc_insertandfindbestmatch()
143 if (A32(ref) == A32(ip)) { in lz4hc_insertandfindbestmatch()
144 delta = (u16)(ip-ref); in lz4hc_insertandfindbestmatch()
146 ref + MINMATCH, matchlimit) + MINMATCH; in lz4hc_insertandfindbestmatch()
147 *matchpos = ref; in lz4hc_insertandfindbestmatch()
149 ref -= (size_t)chaintable[(size_t)(ref) & MAXD_MASK]; in lz4hc_insertandfindbestmatch()
152 while ((ref >= ip - MAX_DISTANCE) && nbattempts) { in lz4hc_insertandfindbestmatch()
154 if (*(ref + ml) == *(ip + ml)) { in lz4hc_insertandfindbestmatch()
155 if (A32(ref) == A32(ip)) { in lz4hc_insertandfindbestmatch()
158 ref + MINMATCH, matchlimit) + MINMATCH; in lz4hc_insertandfindbestmatch()
161 *matchpos = ref; in lz4hc_insertandfindbestmatch()
165 ref -= (size_t)chaintable[(size_t)(ref) & MAXD_MASK]; in lz4hc_insertandfindbestmatch()
201 const u8 *ref; in lz4hc_insertandgetwidermatch() local
207 ref = hashtable[HASH_VALUE(ip)] + base; in lz4hc_insertandgetwidermatch()
209 while ((ref >= ip - MAX_DISTANCE) && (ref >= hc4->base) in lz4hc_insertandgetwidermatch()
212 if (*(startlimit + longest) == *(ref - delta + longest)) { in lz4hc_insertandgetwidermatch()
213 if (A32(ref) == A32(ip)) { in lz4hc_insertandgetwidermatch()
214 const u8 *reft = ref + MINMATCH; in lz4hc_insertandgetwidermatch()
248 reft = ref; in lz4hc_insertandgetwidermatch()
264 ref -= (size_t)chaintable[(size_t)(ref) & MAXD_MASK]; in lz4hc_insertandgetwidermatch()
270 int ml, const u8 *ref) in lz4_encodesequence() argument
291 LZ4_WRITE_LITTLEENDIAN_16(*op, (u16)(*ip - ref)); in lz4_encodesequence()
331 const u8 *ref = NULL; in lz4_compresshcctx() local
344 ml = lz4hc_insertandfindbestmatch(ctx, ip, matchlimit, (&ref)); in lz4_compresshcctx()
352 ref0 = ref; in lz4_compresshcctx()
362 lz4_encodesequence(&ip, &op, &anchor, ml, ref); in lz4_compresshcctx()
370 ref = ref0; in lz4_compresshcctx()
381 ref = ref2; in lz4_compresshcctx()
423 lz4_encodesequence(&ip, &op, &anchor, ml, ref); in lz4_compresshcctx()
449 lz4_encodesequence(&ip, &op, &anchor, ml, ref); in lz4_compresshcctx()
451 ref = ref3; in lz4_compresshcctx()
487 lz4_encodesequence(&ip, &op, &anchor, ml, ref); in lz4_compresshcctx()
490 ref = ref2; in lz4_compresshcctx()