Lines Matching refs:swd
416 void assert_match( const lzo_swd_p swd, lzo_uint m_len, lzo_uint m_off ) in assert_match() argument
418 const LZO_COMPRESS_T *c = swd->c; in assert_match()
429 assert(swd->dict != NULL); in assert_match()
431 assert(d_off <= swd->dict_len); in assert_match()
434 assert(lzo_memcmp(c->bp, swd->dict_end - d_off, d_off) == 0); in assert_match()
440 assert(lzo_memcmp(c->bp, swd->dict_end - d_off, m_len) == 0); in assert_match()
452 better_match ( const lzo_swd_p swd, lzo_uint *m_len, lzo_uint *m_off ) in better_match() argument
455 const LZO_COMPRESS_T *c = swd->c; in better_match()
465 c->last_m_off && swd->best_off[*m_len-1] == c->last_m_off) in better_match()
468 *m_off = swd->best_off[*m_len]; in better_match()
481 swd->best_off[*m_len-1] && swd->best_off[*m_len-1] <= M2_MAX_OFFSET) in better_match()
484 *m_off = swd->best_off[*m_len]; in better_match()
493 swd->best_off[*m_len-2] && swd->best_off[*m_len-2] <= M2_MAX_OFFSET) in better_match()
496 *m_off = swd->best_off[*m_len]; in better_match()
505 swd->best_off[*m_len-1] && swd->best_off[*m_len-1] <= M3_MAX_OFFSET) in better_match()
508 *m_off = swd->best_off[*m_len]; in better_match()
539 lzo_swd_p const swd = (lzo_swd_p) wrkmem; in lzo1x_999_compress_internal() local
585 r = init_match(c,swd,dict,dict_len,flags); in lzo1x_999_compress_internal()
589 swd->max_chain = max_chain; in lzo1x_999_compress_internal()
591 swd->nice_length = nice_length; in lzo1x_999_compress_internal()
593 r = find_match(c,swd,0,0); in lzo1x_999_compress_internal()
612 assert(swd->b_char == *(c->bp)); in lzo1x_999_compress_internal()
639 swd->max_chain = max_chain; in lzo1x_999_compress_internal()
640 r = find_match(c,swd,1,0); in lzo1x_999_compress_internal()
647 if (swd->use_best_off) in lzo1x_999_compress_internal()
648 better_match(swd,&m_len,&m_off); in lzo1x_999_compress_internal()
650 assert_match(swd,m_len,m_off); in lzo1x_999_compress_internal()
679 swd->max_chain = max_chain >> 2; in lzo1x_999_compress_internal()
681 swd->max_chain = max_chain; in lzo1x_999_compress_internal()
682 r = find_match(c,swd,1,0); in lzo1x_999_compress_internal()
701 if (swd->use_best_off) in lzo1x_999_compress_internal()
702 better_match(swd,&c->m_len,&c->m_off); in lzo1x_999_compress_internal()
724 assert_match(swd,c->m_len,c->m_off); in lzo1x_999_compress_internal()
752 swd->max_chain = max_chain; in lzo1x_999_compress_internal()
753 r = find_match(c,swd,m_len,1+ahead); in lzo1x_999_compress_internal()