Lines Matching refs:op
111 u8 *op = (u8 *)out_data; in lzf_compress() local
113 u8 *out_end = op + out_len; in lzf_compress()
142 lit = 0; op++; /* start run */ in lzf_compress()
173 if (expect_false (op + 3 + 1 >= out_end)) /* first a faster conservative test */ in lzf_compress()
174 if (op - !lit + 3 + 1 >= out_end) /* second the exact but rare test */ in lzf_compress()
177 op [- lit - 1] = lit - 1; /* stop run */ in lzf_compress()
178 op -= !lit; /* undo run if length is zero */ in lzf_compress()
217 *op++ = (off >> 8) + (len << 5); in lzf_compress()
221 *op++ = (off >> 8) + ( 7 << 5); in lzf_compress()
222 *op++ = len - 7; in lzf_compress()
225 *op++ = off; in lzf_compress()
226 lit = 0; op++; /* start run */ in lzf_compress()
264 if (expect_false (op >= out_end)) in lzf_compress()
267 lit++; *op++ = *ip++; in lzf_compress()
271 op [- lit - 1] = lit - 1; /* stop run */ in lzf_compress()
272 lit = 0; op++; /* start run */ in lzf_compress()
277 if (op + 3 > out_end) /* at most 3 bytes can be missing here */ in lzf_compress()
282 lit++; *op++ = *ip++; in lzf_compress()
286 op [- lit - 1] = lit - 1; /* stop run */ in lzf_compress()
287 lit = 0; op++; /* start run */ in lzf_compress()
291 op [- lit - 1] = lit - 1; /* end run */ in lzf_compress()
292 op -= !lit; /* undo run if length is zero */ in lzf_compress()
294 return op - (u8 *)out_data; in lzf_compress()
316 u8 *op = (u8 *)out_data; in lzf_decompress() local
318 u8 *const out_end = op + out_len; in lzf_decompress()
328 if (op + ctrl > out_end) in lzf_decompress()
343 lzf_movsb (op, ip, ctrl); in lzf_decompress()
346 *op++ = *ip++; in lzf_decompress()
354 u8 *ref = op - ((ctrl & 0x1f) << 8) - 1; in lzf_decompress()
377 if (op + len + 2 > out_end) in lzf_decompress()
391 lzf_movsb (op, ref, len); in lzf_decompress()
393 *op++ = *ref++; in lzf_decompress()
394 *op++ = *ref++; in lzf_decompress()
397 *op++ = *ref++; in lzf_decompress()
404 return op - (u8 *)out_data; in lzf_decompress()