Lines Matching refs:m_pos
4521 # define GINDEX(m_pos,m_off,dict,dindex,in) m_pos = dict[dindex] argument
4524 # define GINDEX(m_pos,m_off,dict,dindex,in) m_off = dict[dindex] argument
4546 #define LZO_CHECK_MPOS_DET(m_pos,m_off,in,ip,max_offset) \ argument
4547 (m_pos == NULL || (m_off = pd(ip, m_pos)) > max_offset)
4549 #define LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,max_offset) \ argument
4551 m_pos = ip - (lzo_uint) PTR_DIFF(ip,m_pos), \
4552 PTR_LT(m_pos,in) || \
4553 (m_off = (lzo_uint) PTR_DIFF(ip,m_pos)) == 0 || \
4558 #define LZO_CHECK_MPOS_DET(m_pos,m_off,in,ip,max_offset) \ argument
4561 (m_pos = (ip) - (m_off), 0) )
4563 #define LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,max_offset) \ argument
4566 (m_pos = (ip) - (m_off), 0) )
4615 const lzo_bytep m_pos; in do_compress() local
4624 GINDEX(m_pos,m_off,dict,dindex,in); in do_compress()
4625 if (LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,M4_MAX_OFFSET)) in do_compress()
4628 if (m_off <= M2_MAX_OFFSET || m_pos[3] == ip[3]) in do_compress()
4632 GINDEX(m_pos,m_off,dict,dindex,in); in do_compress()
4633 if (LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,M4_MAX_OFFSET)) in do_compress()
4635 if (m_off <= M2_MAX_OFFSET || m_pos[3] == ip[3]) in do_compress()
4641 if (UA_GET_NE32(m_pos) != UA_GET_NE32(ip)) in do_compress()
4643 if (m_pos[0] != ip[0] || m_pos[1] != ip[1] || m_pos[2] != ip[2] || m_pos[3] != ip[3]) in do_compress()
4665 GINDEX(m_off,m_pos,in+dict,dindex,in); in do_compress()
4667 if __lzo_unlikely(dv != UA_GET_LE32(m_pos)) in do_compress()
4728 v = UA_GET_NE64(ip + m_len) ^ UA_GET_NE64(m_pos + m_len); in do_compress()
4732 v = UA_GET_NE64(ip + m_len) ^ UA_GET_NE64(m_pos + m_len); in do_compress()
4752 if (ip[m_len] == m_pos[m_len]) do { in do_compress()
4754 } while (ip[m_len] == m_pos[m_len]); in do_compress()
4758 v = UA_GET_NE32(ip + m_len) ^ UA_GET_NE32(m_pos + m_len); in do_compress()
4762 v = UA_GET_NE32(ip + m_len) ^ UA_GET_NE32(m_pos + m_len); in do_compress()
4766 v = UA_GET_NE32(ip + m_len) ^ UA_GET_NE32(m_pos + m_len); in do_compress()
4786 if (ip[m_len] == m_pos[m_len]) do { in do_compress()
4788 } while (ip[m_len] == m_pos[m_len]); in do_compress()
4791 if __lzo_unlikely(ip[m_len] == m_pos[m_len]) { in do_compress()
4794 if (ip[m_len] != m_pos[m_len]) in do_compress()
4797 if (ip[m_len] != m_pos[m_len]) in do_compress()
4800 if (ip[m_len] != m_pos[m_len]) in do_compress()
4803 if (ip[m_len] != m_pos[m_len]) in do_compress()
4806 if (ip[m_len] != m_pos[m_len]) in do_compress()
4809 if (ip[m_len] != m_pos[m_len]) in do_compress()
4812 if (ip[m_len] != m_pos[m_len]) in do_compress()
4817 } while (ip[m_len] == m_pos[m_len]); in do_compress()
4822 m_off = pd(ip,m_pos); in do_compress()
5013 # define TEST_LB(m_pos) if (PTR_LT(m_pos,out) || PTR_GE(m_pos,op)) goto lookbehind_overrun argument
5014 # define TEST_LBO(m_pos,o) if (PTR_LT(m_pos,out) || PTR_GE(m_pos,op-(o))) goto lookbehind_over… argument
5016 # define TEST_LB(m_pos) ((void) 0) argument
5017 # define TEST_LBO(m_pos,o) ((void) 0) argument
5079 const lzo_bytep m_pos; local
5209 m_pos = op - t;
5212 m_pos = op - (1 + M2_MAX_OFFSET);
5213 m_pos -= t >> 2;
5214 m_pos -= *ip++ << 2;
5216 TEST_LB(m_pos); NEED_OP(3);
5217 *op++ = *m_pos++; *op++ = *m_pos++; *op++ = *m_pos;
5245 m_pos = op - 1;
5246 m_pos -= (t >> 2) & 7;
5247 m_pos -= *ip++ << 3;
5250 m_pos = op - 1;
5251 m_pos -= (t >> 2) & 3;
5252 m_pos -= *ip++ << 2;
5257 m_pos = op;
5261 m_pos -= last_m_off;
5266 m_pos -= off;
5272 TEST_LB(m_pos); assert(t > 0); NEED_OP(t+3-1);
5302 m_pos = op - off;
5306 m_pos = op - 1;
5307 m_pos -= UA_GET_LE16(ip) >> 2;
5309 m_pos = op - 1;
5310 m_pos -= (ip[0] >> 2) + (ip[1] << 6);
5320 m_pos = op;
5321 m_pos -= (t & 8) << 11;
5351 m_pos -= (ip[0] << 6) + (ip[1] >> 2);
5353 m_pos -= UA_GET_LE16(ip) >> 2;
5355 m_pos -= (ip[0] >> 2) + (ip[1] << 6);
5358 if (m_pos == op)
5360 m_pos -= 0x4000;
5362 last_m_off = pd((const lzo_bytep)op, m_pos);
5380 m_pos = op - t;
5383 m_pos = op - 1;
5384 m_pos -= t >> 2;
5385 m_pos -= *ip++ << 2;
5387 TEST_LB(m_pos); NEED_OP(2);
5388 *op++ = *m_pos++; *op++ = *m_pos;
5400 TEST_LB(m_pos); assert(t > 0); NEED_OP(t+3-1);
5402 if (op - m_pos >= 8)
5407 UA_COPY8(op,m_pos);
5408 op += 8; m_pos += 8; t -= 8;
5412 UA_COPY4(op,m_pos);
5413 op += 4; m_pos += 4; t -= 4;
5417 *op++ = m_pos[0];
5418 if (t > 1) { *op++ = m_pos[1]; if (t > 2) { *op++ = m_pos[2]; } }
5424 if (t >= 2 * 4 - (3 - 1) && PTR_ALIGNED2_4(op,m_pos))
5426 assert((op - m_pos) >= 4);
5428 if (t >= 2 * 4 - (3 - 1) && (op - m_pos) >= 4)
5431 UA_COPY4(op,m_pos);
5432 op += 4; m_pos += 4; t -= 4 - (3 - 1);
5434 UA_COPY4(op,m_pos);
5435 op += 4; m_pos += 4; t -= 4;
5437 if (t > 0) do *op++ = *m_pos++; while (--t > 0);
5443 *op++ = *m_pos++; *op++ = *m_pos++;
5444 do *op++ = *m_pos++; while (--t > 0);
5554 # define TEST_LB(m_pos) if (PTR_LT(m_pos,out) || PTR_GE(m_pos,op)) goto lookbehind_overrun argument
5555 # define TEST_LBO(m_pos,o) if (PTR_LT(m_pos,out) || PTR_GE(m_pos,op-(o))) goto lookbehind_over… argument
5557 # define TEST_LB(m_pos) ((void) 0) argument
5558 # define TEST_LBO(m_pos,o) ((void) 0) argument
5620 const lzo_bytep m_pos; local
5750 m_pos = op - t;
5753 m_pos = op - (1 + M2_MAX_OFFSET);
5754 m_pos -= t >> 2;
5755 m_pos -= *ip++ << 2;
5757 TEST_LB(m_pos); NEED_OP(3);
5758 *op++ = *m_pos++; *op++ = *m_pos++; *op++ = *m_pos;
5786 m_pos = op - 1;
5787 m_pos -= (t >> 2) & 7;
5788 m_pos -= *ip++ << 3;
5791 m_pos = op - 1;
5792 m_pos -= (t >> 2) & 3;
5793 m_pos -= *ip++ << 2;
5798 m_pos = op;
5802 m_pos -= last_m_off;
5807 m_pos -= off;
5813 TEST_LB(m_pos); assert(t > 0); NEED_OP(t+3-1);
5843 m_pos = op - off;
5847 m_pos = op - 1;
5848 m_pos -= UA_GET_LE16(ip) >> 2;
5850 m_pos = op - 1;
5851 m_pos -= (ip[0] >> 2) + (ip[1] << 6);
5861 m_pos = op;
5862 m_pos -= (t & 8) << 11;
5892 m_pos -= (ip[0] << 6) + (ip[1] >> 2);
5894 m_pos -= UA_GET_LE16(ip) >> 2;
5896 m_pos -= (ip[0] >> 2) + (ip[1] << 6);
5899 if (m_pos == op)
5901 m_pos -= 0x4000;
5903 last_m_off = pd((const lzo_bytep)op, m_pos);
5921 m_pos = op - t;
5924 m_pos = op - 1;
5925 m_pos -= t >> 2;
5926 m_pos -= *ip++ << 2;
5928 TEST_LB(m_pos); NEED_OP(2);
5929 *op++ = *m_pos++; *op++ = *m_pos;
5941 TEST_LB(m_pos); assert(t > 0); NEED_OP(t+3-1);
5943 if (op - m_pos >= 8)
5948 UA_COPY8(op,m_pos);
5949 op += 8; m_pos += 8; t -= 8;
5953 UA_COPY4(op,m_pos);
5954 op += 4; m_pos += 4; t -= 4;
5958 *op++ = m_pos[0];
5959 if (t > 1) { *op++ = m_pos[1]; if (t > 2) { *op++ = m_pos[2]; } }
5965 if (t >= 2 * 4 - (3 - 1) && PTR_ALIGNED2_4(op,m_pos))
5967 assert((op - m_pos) >= 4);
5969 if (t >= 2 * 4 - (3 - 1) && (op - m_pos) >= 4)
5972 UA_COPY4(op,m_pos);
5973 op += 4; m_pos += 4; t -= 4 - (3 - 1);
5975 UA_COPY4(op,m_pos);
5976 op += 4; m_pos += 4; t -= 4;
5978 if (t > 0) do *op++ = *m_pos++; while (--t > 0);
5984 *op++ = *m_pos++; *op++ = *m_pos++;
5985 do *op++ = *m_pos++; while (--t > 0);