summaryrefslogtreecommitdiff
path: root/xdelta3/xdelta3.h
diff options
context:
space:
mode:
Diffstat (limited to 'xdelta3/xdelta3.h')
-rw-r--r--xdelta3/xdelta3.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h
index 6204d3f..1f20c10 100644
--- a/xdelta3/xdelta3.h
+++ b/xdelta3/xdelta3.h
@@ -71,7 +71,7 @@
71 * larger this buffer, the longer a forced xd3_srcwin_setup() decision is held off. 71 * larger this buffer, the longer a forced xd3_srcwin_setup() decision is held off.
72 * Setting this value to 0 causes an unlimited buffer to be used. */ 72 * Setting this value to 0 causes an unlimited buffer to be used. */
73#ifndef XD3_DEFAULT_IOPT_SIZE 73#ifndef XD3_DEFAULT_IOPT_SIZE
74#define XD3_DEFAULT_IOPT_SIZE (1U<<12) 74#define XD3_DEFAULT_IOPT_SIZE (1U<<15)
75#endif 75#endif
76 76
77/* The maximum distance backward to search for small matches */ 77/* The maximum distance backward to search for small matches */
@@ -529,11 +529,8 @@ struct _xd3_smatcher
529 uint small_look; 529 uint small_look;
530 uint small_chain; 530 uint small_chain;
531 uint small_lchain; 531 uint small_lchain;
532 uint ssmatch;
533 uint try_lazy;
534 uint max_lazy; 532 uint max_lazy;
535 uint long_enough; 533 uint long_enough;
536 uint promote;
537}; 534};
538 535
539/* hash table size & power-of-two hash function. */ 536/* hash table size & power-of-two hash function. */
@@ -544,13 +541,10 @@ struct _xd3_hash_cfg
544 usize_t mask; 541 usize_t mask;
545}; 542};
546 543
547/* a hash-chain link in the small match table, embedded with position and checksum */ 544/* the sprev list */
548struct _xd3_slist 545struct _xd3_slist
549{ 546{
550 xd3_slist *next; 547 usize_t last_pos;
551 xd3_slist *prev;
552 usize_t pos;
553 usize_t scksum;
554}; 548};
555 549
556/* a decoder section (data, inst, or addr). there is an optimization to avoid copying 550/* a decoder section (data, inst, or addr). there is an optimization to avoid copying
@@ -815,9 +809,6 @@ struct _xd3_stream
815 usize_t i_slots_used; 809 usize_t i_slots_used;
816 810
817#if XD3_DEBUG 811#if XD3_DEBUG
818 usize_t sh_searches;
819 usize_t sh_compares;
820
821 usize_t large_ckcnt; 812 usize_t large_ckcnt;
822 813
823 /* memory usage */ 814 /* memory usage */