Lines Matching refs:m_off
2850 # define GINDEX(m_pos,m_off,dict,dindex,in) m_pos = dict[dindex] argument
2853 # define GINDEX(m_pos,m_off,dict,dindex,in) m_off = dict[dindex] argument
2875 #define LZO_CHECK_MPOS_DET(m_pos,m_off,in,ip,max_offset) \ argument
2876 (m_pos == NULL || (m_off = pd(ip, m_pos)) > max_offset)
2878 #define LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,max_offset) \ argument
2882 (m_off = (lzo_uint) PTR_DIFF(ip,m_pos)) == 0 || \
2883 m_off > max_offset )))
2887 #define LZO_CHECK_MPOS_DET(m_pos,m_off,in,ip,max_offset) \ argument
2888 (m_off == 0 || \
2889 ((m_off = pd(ip, in) - m_off) > max_offset) || \
2890 (m_pos = (ip) - (m_off), 0) )
2892 #define LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,max_offset) \ argument
2893 (pd(ip, in) <= m_off || \
2894 ((m_off = pd(ip, in) - m_off) > max_offset) || \
2895 (m_pos = (ip) - (m_off), 0) )
2942 LZO_DEFINE_UNINITIALIZED_VAR(lzo_uint, m_off, 0); in do_compress()
2947 GINDEX(m_pos,m_off,dict,dindex,in); in do_compress()
2948 if (LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,M4_MAX_OFFSET)) in do_compress()
2951 if (m_off <= M2_MAX_OFFSET || m_pos[3] == ip[3]) in do_compress()
2955 GINDEX(m_pos,m_off,dict,dindex,in); in do_compress()
2956 if (LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,M4_MAX_OFFSET)) in do_compress()
2958 if (m_off <= M2_MAX_OFFSET || m_pos[3] == ip[3]) in do_compress()
2975 if (m_off <= M2_MAX_OFFSET) in do_compress()
2993 if (m_off <= M1_MAX_OFFSET && lit > 0 && lit <= 3) in do_compress()
2995 if (m_off <= M1_MAX_OFFSET && lit == 3) in do_compress()
3004 m_off -= 1; in do_compress()
3005 *op++ = LZO_BYTE(M1_MARKER | ((m_off & 3) << 2)); in do_compress()
3006 *op++ = LZO_BYTE(m_off >> 2); in do_compress()
3064 if (m_off <= M2_MAX_OFFSET) in do_compress()
3066 m_off -= 1; in do_compress()
3068 *op++ = LZO_BYTE(((m_len - 1) << 5) | ((m_off & 7) << 2)); in do_compress()
3069 *op++ = LZO_BYTE(m_off >> 3); in do_compress()
3071 *op++ = LZO_BYTE(((m_len + 1) << 4) | ((m_off & 3) << 2)); in do_compress()
3072 *op++ = LZO_BYTE(m_off >> 2); in do_compress()
3075 else if (m_off <= M3_MAX_OFFSET) in do_compress()
3077 m_off -= 1; in do_compress()
3084 m_off -= 0x4000; in do_compress()
3085 assert(m_off > 0); assert(m_off <= 0x7fff); in do_compress()
3087 ((m_off & 0x4000) >> 11) | (m_len - 2)); in do_compress()
3105 if (m_off <= M3_MAX_OFFSET) in do_compress()
3107 m_off -= 1; in do_compress()
3122 m_off -= 0x4000; in do_compress()
3123 assert(m_off > 0); assert(m_off <= 0x7fff); in do_compress()
3126 ((m_off & 0x4000) >> 11) | (m_len - 2)); in do_compress()
3130 *op++ = LZO_BYTE(M4_MARKER | ((m_off & 0x4000) >> 11)); in do_compress()
3143 *op++ = LZO_BYTE((m_off & 63) << 2); in do_compress()
3144 *op++ = LZO_BYTE(m_off >> 6); in do_compress()
3319 lzo_uint m_off; local
3423 m_off = (1 + M2_MAX_OFFSET) + (t << 6) + (*ip++ >> 2);
3424 last_m_off = m_off;
3426 m_off = (1 + M2_MAX_OFFSET) + (t >> 2) + (*ip++ << 2);
3429 t = 3; COPY_DICT(t,m_off)
3451 m_off = 1 + ((t >> 2) & 7) + (*ip++ << 3);
3454 m_off = 1 + ((t >> 2) & 3) + (*ip++ << 2);
3457 m_off = t & 0x1f;
3458 if (m_off >= 0x1c)
3459 m_off = last_m_off;
3462 m_off = 1 + (m_off << 6) + (*ip++ >> 2);
3463 last_m_off = m_off;
3516 m_off = 1 + (ip[0] << 6) + (ip[1] >> 2);
3517 last_m_off = m_off;
3519 m_off = 1 + (ip[0] >> 2) + (ip[1] << 6);
3541 m_off = (t & 8) << 11;
3560 m_off += (ip[0] << 6) + (ip[1] >> 2);
3562 m_off += (ip[0] >> 2) + (ip[1] << 6);
3565 if (m_off == 0)
3567 m_off += 0x4000;
3569 last_m_off = m_off;
3592 m_off = 1 + (t << 6) + (*ip++ >> 2);
3593 last_m_off = m_off;
3595 m_off = 1 + (t >> 2) + (*ip++ << 2);
3598 t = 2; COPY_DICT(t,m_off)
3618 t += 3-1; COPY_DICT(t,m_off)
3807 lzo_uint m_off; local
3911 m_off = (1 + M2_MAX_OFFSET) + (t << 6) + (*ip++ >> 2);
3912 last_m_off = m_off;
3914 m_off = (1 + M2_MAX_OFFSET) + (t >> 2) + (*ip++ << 2);
3917 t = 3; COPY_DICT(t,m_off)
3939 m_off = 1 + ((t >> 2) & 7) + (*ip++ << 3);
3942 m_off = 1 + ((t >> 2) & 3) + (*ip++ << 2);
3945 m_off = t & 0x1f;
3946 if (m_off >= 0x1c)
3947 m_off = last_m_off;
3950 m_off = 1 + (m_off << 6) + (*ip++ >> 2);
3951 last_m_off = m_off;
4004 m_off = 1 + (ip[0] << 6) + (ip[1] >> 2);
4005 last_m_off = m_off;
4007 m_off = 1 + (ip[0] >> 2) + (ip[1] << 6);
4029 m_off = (t & 8) << 11;
4048 m_off += (ip[0] << 6) + (ip[1] >> 2);
4050 m_off += (ip[0] >> 2) + (ip[1] << 6);
4053 if (m_off == 0)
4055 m_off += 0x4000;
4057 last_m_off = m_off;
4080 m_off = 1 + (t << 6) + (*ip++ >> 2);
4081 last_m_off = m_off;
4083 m_off = 1 + (t >> 2) + (*ip++ << 2);
4086 t = 2; COPY_DICT(t,m_off)
4106 t += 3-1; COPY_DICT(t,m_off)