diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-28 14:38:59 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-12-28 14:38:59 (GMT) |
commit | 312d88249feee4c1b7511ac9fffce10ed6802ba7 (patch) | |
tree | 7129ddf2bfb327648e5c566c96b851a1c3ea97b7 /lib/lz4opt.h | |
parent | 3d5bb38977cbb200fe0950095b7a10261b7ff792 (diff) | |
download | lz4-312d88249feee4c1b7511ac9fffce10ed6802ba7.zip lz4-312d88249feee4c1b7511ac9fffce10ed6802ba7.tar.gz lz4-312d88249feee4c1b7511ac9fffce10ed6802ba7.tar.bz2 |
removed nextToUpdateBT
Diffstat (limited to 'lib/lz4opt.h')
-rw-r--r-- | lib/lz4opt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lz4opt.h b/lib/lz4opt.h index cc80495..d1913fe 100644 --- a/lib/lz4opt.h +++ b/lib/lz4opt.h @@ -171,7 +171,7 @@ FORCE_INLINE void LZ4HC_updateBinTree(LZ4HC_CCtx_internal* ctx, const BYTE* cons { const BYTE* const base = ctx->base; const U32 target = (U32)(ip - base); - U32 idx = ctx->nextToUpdateBT; + U32 idx = ctx->nextToUpdate; while(idx < target) idx += LZ4HC_BinTree_InsertAndGetAllMatches(ctx, base+idx, iHighLimit, 8, NULL, NULL); } @@ -184,10 +184,10 @@ FORCE_INLINE int LZ4HC_BinTree_GetAllMatches ( size_t best_mlen, LZ4HC_match_t* matches, const int fullUpdate) { int mnum = 0; - if (ip < ctx->base + ctx->nextToUpdateBT) return 0; /* skipped area */ + if (ip < ctx->base + ctx->nextToUpdate) return 0; /* skipped area */ if (fullUpdate) LZ4HC_updateBinTree(ctx, ip, iHighLimit); best_mlen = LZ4HC_BinTree_InsertAndGetAllMatches(ctx, ip, iHighLimit, best_mlen, matches, &mnum); - ctx->nextToUpdateBT = (U32)(ip - ctx->base + best_mlen); + ctx->nextToUpdate = (U32)(ip - ctx->base + best_mlen); return mnum; } |