summaryrefslogtreecommitdiff
path: root/base/compression/lzss_compression.hh
diff options
context:
space:
mode:
authorErik Hallnor <ehallnor@umich.edu>2004-03-24 04:41:19 -0500
committerErik Hallnor <ehallnor@umich.edu>2004-03-24 04:41:19 -0500
commit81882c0d10ee7a29181eea89ab56953049c86e00 (patch)
treea6ab3ef99222cb5055eb79c5e16d6298db549866 /base/compression/lzss_compression.hh
parentb18a36a6f2034db838d3a8013a460b7f59c802a4 (diff)
downloadgem5-81882c0d10ee7a29181eea89ab56953049c86e00.tar.xz
A few memory system performance enhancements.
base/compression/lzss_compression.cc: base/compression/lzss_compression.hh: Rework for better performance --HG-- extra : convert_revision : b13d706e0e23cbe7122b611258354c66cf5f3c70
Diffstat (limited to 'base/compression/lzss_compression.hh')
-rw-r--r--base/compression/lzss_compression.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/base/compression/lzss_compression.hh b/base/compression/lzss_compression.hh
index 755a52c92..9707a8aca 100644
--- a/base/compression/lzss_compression.hh
+++ b/base/compression/lzss_compression.hh
@@ -41,14 +41,15 @@
class LZSSCompression
{
/**
- * Finds the longest substrings that start at the given offsets.
+ * Finds the longest substring for the given offset.
* @param src The source block that we search for substrings.
- * @param front The smaller offset.
* @param back The larger offset.
* @param size The size of the source block.
- * @return The size of the longest substring.
+ * @param L The length of the largest substring.
+ * @param P The starting offset of the largest substring.
*/
- int findSubString(uint8_t *src, int front, int back, int size);
+ void findSubString(uint8_t *src, int back, int size, uint16_t &L,
+ uint16_t &P);
/**
* Emit an encoded byte to the compressed data array. If the 2 high