aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lzma/lzma_common.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-01-15 14:02:22 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-01-15 14:02:22 +0200
commite5728142a2048979f5c0c2149ce71ae952a092e1 (patch)
tree7ea154a3a970afecf25b5de654d9c915e9c0c84d /src/liblzma/lzma/lzma_common.h
parentAdded bsr.h. (diff)
downloadxz-e5728142a2048979f5c0c2149ce71ae952a092e1.tar.xz
Revised the fastpos code. It now uses the slightly faster
table-based version from LZMA SDK 4.57. This should be fast on most systems. A simpler and smaller alternative version is also provided. On some CPUs this can be even a little faster than the default table-based version (see comments in fastpos.h), but on most systems the table-based code is faster.
Diffstat (limited to 'src/liblzma/lzma/lzma_common.h')
-rw-r--r--src/liblzma/lzma/lzma_common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liblzma/lzma/lzma_common.h b/src/liblzma/lzma/lzma_common.h
index 60b1934c..2bb73157 100644
--- a/src/liblzma/lzma/lzma_common.h
+++ b/src/liblzma/lzma/lzma_common.h
@@ -55,7 +55,8 @@
#define END_POS_MODEL_INDEX 14
#define POS_MODELS (END_POS_MODEL_INDEX - START_POS_MODEL_INDEX)
-#define FULL_DISTANCES (1 << (END_POS_MODEL_INDEX / 2))
+#define FULL_DISTANCES_BITS (END_POS_MODEL_INDEX / 2)
+#define FULL_DISTANCES (1 << FULL_DISTANCES_BITS)
#define POS_STATES_MAX (1 << LZMA_POS_BITS_MAX)