aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/lzma/lzma_encoder_getoptimum.c
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_encoder_getoptimum.c
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_encoder_getoptimum.c')
-rw-r--r--src/liblzma/lzma/lzma_encoder_getoptimum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liblzma/lzma/lzma_encoder_getoptimum.c b/src/liblzma/lzma/lzma_encoder_getoptimum.c
index b00f5c38..23a075f0 100644
--- a/src/liblzma/lzma/lzma_encoder_getoptimum.c
+++ b/src/liblzma/lzma/lzma_encoder_getoptimum.c
@@ -27,6 +27,7 @@
#include "lzma_encoder_private.h"
+#include "fastpos.h"
#define length_get_price(length_encoder, symbol, pos_state) \