mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2024-11-22 21:32:07 +00:00
Fix comments, remove unused vars
This commit is contained in:
parent
f505e8d4e7
commit
12086b974a
@ -445,6 +445,7 @@ static void lzsa_optimize_matches_v2(lzsa_compressor *pCompressor, const int nSt
|
|||||||
* impacting the compression ratio
|
* impacting the compression ratio
|
||||||
*
|
*
|
||||||
* @param pCompressor compression context
|
* @param pCompressor compression context
|
||||||
|
* @param pBestMatch optimal matches to evaluate and update
|
||||||
* @param nStartOffset current offset in input window (typically the number of previously compressed bytes)
|
* @param nStartOffset current offset in input window (typically the number of previously compressed bytes)
|
||||||
* @param nEndOffset offset to end finding matches at (typically the size of the total input window in bytes
|
* @param nEndOffset offset to end finding matches at (typically the size of the total input window in bytes
|
||||||
*
|
*
|
||||||
@ -754,13 +755,12 @@ static void lzsa_optimize_forward_v2(lzsa_compressor *pCompressor, const int nSt
|
|||||||
* @param nStartOffset current offset in input window (typically the number of previously compressed bytes)
|
* @param nStartOffset current offset in input window (typically the number of previously compressed bytes)
|
||||||
* @param nEndOffset offset to end finding matches at (typically the size of the total input window in bytes
|
* @param nEndOffset offset to end finding matches at (typically the size of the total input window in bytes
|
||||||
*
|
*
|
||||||
* @return compressed size
|
* @return compressed size, in bits
|
||||||
*/
|
*/
|
||||||
static int lzsa_get_compressed_size_v2(lzsa_compressor *pCompressor, lzsa_match *pBestMatch, const int nStartOffset, const int nEndOffset) {
|
static int lzsa_get_compressed_size_v2(lzsa_compressor *pCompressor, lzsa_match *pBestMatch, const int nStartOffset, const int nEndOffset) {
|
||||||
int i;
|
int i;
|
||||||
int nNumLiterals = 0;
|
int nNumLiterals = 0;
|
||||||
int nCompressedSize = 0;
|
int nCompressedSize = 0;
|
||||||
int nCurNibbleOffset = -1, nCurFreeNibbles = 0;
|
|
||||||
int nRepMatchOffset = 0;
|
int nRepMatchOffset = 0;
|
||||||
|
|
||||||
for (i = nStartOffset; i < nEndOffset; ) {
|
for (i = nStartOffset; i < nEndOffset; ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user