Lines Matching refs:ip
3042 #define LZO_CHECK_MPOS_DET(m_pos,m_off,in,ip,max_offset) \
3043 (m_pos == NULL || (m_off = pd(ip, m_pos)) > max_offset)
3045 #define LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,max_offset) \
3047 m_pos = ip - (lzo_uint) PTR_DIFF(ip,m_pos), \
3049 (m_off = (lzo_uint) PTR_DIFF(ip,m_pos)) == 0 || \
3054 #define LZO_CHECK_MPOS_DET(m_pos,m_off,in,ip,max_offset) \
3056 ((m_off = pd(ip, in) - m_off) > max_offset) || \
3057 (m_pos = (ip) - (m_off), 0) )
3059 #define LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,max_offset) \
3060 (pd(ip, in) <= m_off || \
3061 ((m_off = pd(ip, in) - m_off) > max_offset) || \
3062 (m_pos = (ip) - (m_off), 0) )
3171 register const lzo_bytep ip;
3179 ip = in;
3180 ii = ip;
3182 ip += ti < 4 ? 4 - ti : 0;
3191 if __lzo_unlikely(ip >= ip_end)
3193 DINDEX1(dindex,ip);
3195 if (LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,M4_MAX_OFFSET))
3198 if (m_off <= M2_MAX_OFFSET || m_pos[3] == ip[3])
3200 DINDEX2(dindex,ip);
3203 if (LZO_CHECK_MPOS_NON_DET(m_pos,m_off,in,ip,M4_MAX_OFFSET))
3205 if (m_off <= M2_MAX_OFFSET || m_pos[3] == ip[3])
3211 if (UA_GET32(m_pos) != UA_GET32(ip))
3213 if (m_pos[0] != ip[0] || m_pos[1] != ip[1] || m_pos[2] != ip[2] || m_pos[3] != ip[3])
3217 UPDATE_I(dict,0,dindex,ip,in);
3218 ip += 1 + ((ip - ii) >> 5);
3221 UPDATE_I(dict,0,dindex,ip,in);
3229 ip += 1 + ((ip - ii) >> 5);
3231 if __lzo_unlikely(ip >= ip_end)
3233 dv = UA_GET32(ip);
3234 dindex = DINDEX(dv,ip);
3236 UPDATE_I(dict,0,dindex,ip,in);
3244 register lzo_uint t = pd(ip,ii);
3315 v = UA_GET64(ip + m_len) ^ UA_GET64(m_pos + m_len);
3319 v = UA_GET64(ip + m_len) ^ UA_GET64(m_pos + m_len);
3320 if __lzo_unlikely(ip + m_len >= ip_end)
3339 if (ip[m_len] == m_pos[m_len]) do {
3341 } while (ip[m_len] == m_pos[m_len]);
3345 v = UA_GET32(ip + m_len) ^ UA_GET32(m_pos + m_len);
3349 v = UA_GET32(ip + m_len) ^ UA_GET32(m_pos + m_len);
3350 if __lzo_unlikely(ip + m_len >= ip_end)
3369 if (ip[m_len] == m_pos[m_len]) do {
3371 } while (ip[m_len] == m_pos[m_len]);
3374 if __lzo_unlikely(ip[m_len] == m_pos[m_len]) {
3377 if __lzo_unlikely(ip + m_len >= ip_end)
3379 } while (ip[m_len] == m_pos[m_len]);
3384 m_off = pd(ip,m_pos);
3385 ip += m_len;
3386 ii = ip;
3456 const lzo_bytep ip = in;
3468 ll_end = (lzo_uintptr_t)ip + ll;
3469 if ((ll_end + ((t + ll) >> 5)) <= ll_end || (const lzo_bytep)(ll_end + ((t + ll) >> 5)) <= ip + ll)
3474 t = do_compress(ip,ll,op,out_len,t,wrkmem);
3475 ip += ll;
3559 # define TEST_IP (ip < ip_end)
3563 if ((lzo_uint)(ip_end - ip) < (lzo_uint)(x)) goto input_overrun
3587 # define TEST_IP (ip < ip_end)
3627 register const lzo_bytep ip;
3666 ip = in;
3668 if (*ip > 17)
3670 t = *ip++ - 17;
3674 do *op++ = *ip++; while (--t > 0);
3680 t = *ip++;
3686 while (*ip == 0)
3689 ip++;
3692 t += 15 + *ip++;
3699 UA_COPY64(op,ip);
3700 op += 8; ip += 8; t -= 8;
3704 UA_COPY32(op,ip);
3705 op += 4; ip += 4; t -= 4;
3709 *op++ = *ip++;
3710 if (t > 1) { *op++ = *ip++; if (t > 2) { *op++ = *ip++; } }
3714 if (PTR_ALIGNED2_4(op,ip))
3717 UA_COPY32(op,ip);
3718 op += 4; ip += 4;
3724 UA_COPY32(op,ip);
3725 op += 4; ip += 4; t -= 4;
3727 if (t > 0) do *op++ = *ip++; while (--t > 0);
3730 do *op++ = *ip++; while (--t > 0);
3739 *op++ = *ip++; *op++ = *ip++; *op++ = *ip++;
3740 do *op++ = *ip++; while (--t > 0);
3746 t = *ip++;
3751 m_off = (1 + M2_MAX_OFFSET) + (t << 6) + (*ip++ >> 2);
3754 m_off = (1 + M2_MAX_OFFSET) + (t >> 2) + (*ip++ << 2);
3760 t = (1 + M2_MAX_OFFSET) + (t << 6) + (*ip++ >> 2);
3766 m_pos -= *ip++ << 2;
3779 m_off = 1 + ((t >> 2) & 7) + (*ip++ << 3);
3782 m_off = 1 + ((t >> 2) & 3) + (*ip++ << 2);
3790 m_off = 1 + (m_off << 6) + (*ip++ >> 2);
3799 m_pos -= *ip++ << 3;
3804 m_pos -= *ip++ << 2;
3817 off = 1 + (off << 6) + (*ip++ >> 2);
3834 while (*ip == 0)
3837 ip++;
3840 t += 31 + *ip++;
3844 m_off = 1 + (ip[0] << 6) + (ip[1] >> 2);
3847 m_off = 1 + (ip[0] >> 2) + (ip[1] << 6);
3852 lzo_uint off = 1 + (ip[0] << 6) + (ip[1] >> 2);
3858 m_pos -= UA_GET16(ip) >> 2;
3861 m_pos -= (ip[0] >> 2) + (ip[1] << 6);
3864 ip += 2;
3878 while (*ip == 0)
3881 ip++;
3884 t += 7 + *ip++;
3888 m_off += (ip[0] << 6) + (ip[1] >> 2);
3890 m_off += (ip[0] >> 2) + (ip[1] << 6);
3892 ip += 2;
3901 m_pos -= (ip[0] << 6) + (ip[1] >> 2);
3903 m_pos -= UA_GET16(ip) >> 2;
3905 m_pos -= (ip[0] >> 2) + (ip[1] << 6);
3907 ip += 2;
3920 m_off = 1 + (t << 6) + (*ip++ >> 2);
3923 m_off = 1 + (t >> 2) + (*ip++ << 2);
3929 t = 1 + (t << 6) + (*ip++ >> 2);
3935 m_pos -= *ip++ << 2;
4001 t = ip[-1] & 3;
4003 t = ip[-2] & 3;
4011 do *op++ = *ip++; while (--t > 0);
4013 *op++ = *ip++;
4014 if (t > 1) { *op++ = *ip++; if (t > 2) { *op++ = *ip++; } }
4016 t = *ip++;
4028 return (ip == ip_end ? LZO_E_OK :
4029 (ip < ip_end ? LZO_E_INPUT_NOT_CONSUMED : LZO_E_INPUT_OVERRUN));
4085 # define TEST_IP (ip < ip_end)
4089 if ((lzo_uint)(ip_end - ip) < (lzo_uint)(x)) goto input_overrun
4113 # define TEST_IP (ip < ip_end)
4153 register const lzo_bytep ip;
4192 ip = in;
4194 if (*ip > 17)
4196 t = *ip++ - 17;
4200 do *op++ = *ip++; while (--t > 0);
4206 t = *ip++;
4212 while (*ip == 0)
4215 ip++;
4218 t += 15 + *ip++;
4225 UA_COPY64(op,ip);
4226 op += 8; ip += 8; t -= 8;
4230 UA_COPY32(op,ip);
4231 op += 4; ip += 4; t -= 4;
4235 *op++ = *ip++;
4236 if (t > 1) { *op++ = *ip++; if (t > 2) { *op++ = *ip++; } }
4240 if (PTR_ALIGNED2_4(op,ip))
4243 UA_COPY32(op,ip);
4244 op += 4; ip += 4;
4250 UA_COPY32(op,ip);
4251 op += 4; ip += 4; t -= 4;
4253 if (t > 0) do *op++ = *ip++; while (--t > 0);
4256 do *op++ = *ip++; while (--t > 0);
4265 *op++ = *ip++; *op++ = *ip++; *op++ = *ip++;
4266 do *op++ = *ip++; while (--t > 0);
4272 t = *ip++;
4277 m_off = (1 + M2_MAX_OFFSET) + (t << 6) + (*ip++ >> 2);
4280 m_off = (1 + M2_MAX_OFFSET) + (t >> 2) + (*ip++ << 2);
4286 t = (1 + M2_MAX_OFFSET) + (t << 6) + (*ip++ >> 2);
4292 m_pos -= *ip++ << 2;
4305 m_off = 1 + ((t >> 2) & 7) + (*ip++ << 3);
4308 m_off = 1 + ((t >> 2) & 3) + (*ip++ << 2);
4316 m_off = 1 + (m_off << 6) + (*ip++ >> 2);
4325 m_pos -= *ip++ << 3;
4330 m_pos -= *ip++ << 2;
4343 off = 1 + (off << 6) + (*ip++ >> 2);
4360 while (*ip == 0)
4363 ip++;
4366 t += 31 + *ip++;
4370 m_off = 1 + (ip[0] << 6) + (ip[1] >> 2);
4373 m_off = 1 + (ip[0] >> 2) + (ip[1] << 6);
4378 lzo_uint off = 1 + (ip[0] << 6) + (ip[1] >> 2);
4384 m_pos -= UA_GET16(ip) >> 2;
4387 m_pos -= (ip[0] >> 2) + (ip[1] << 6);
4390 ip += 2;
4404 while (*ip == 0)
4407 ip++;
4410 t += 7 + *ip++;
4414 m_off += (ip[0] << 6) + (ip[1] >> 2);
4416 m_off += (ip[0] >> 2) + (ip[1] << 6);
4418 ip += 2;
4427 m_pos -= (ip[0] << 6) + (ip[1] >> 2);
4429 m_pos -= UA_GET16(ip) >> 2;
4431 m_pos -= (ip[0] >> 2) + (ip[1] << 6);
4433 ip += 2;
4446 m_off = 1 + (t << 6) + (*ip++ >> 2);
4449 m_off = 1 + (t >> 2) + (*ip++ << 2);
4455 t = 1 + (t << 6) + (*ip++ >> 2);
4461 m_pos -= *ip++ << 2;
4527 t = ip[-1] & 3;
4529 t = ip[-2] & 3;
4537 do *op++ = *ip++; while (--t > 0);
4539 *op++ = *ip++;
4540 if (t > 1) { *op++ = *ip++; if (t > 2) { *op++ = *ip++; } }
4542 t = *ip++;
4554 return (ip == ip_end ? LZO_E_OK :
4555 (ip < ip_end ? LZO_E_INPUT_NOT_CONSUMED : LZO_E_INPUT_OVERRUN));