#include <fpc.hh>
|
| ZeroRun (const DictionaryEntry bytes, const int match_location) |
|
std::size_t | getSizeBits () const override |
|
int | getRunLength () const |
| Get the number of zeros in the run so far.
|
|
void | setRunLength (int length) |
| Set the number of zeros in the run so far.
|
|
void | setRealSize (int size) |
| When the real size is set it means that we are adding the main zero run pattern.
|
|
|
int | _runLength |
| Run length so far.
|
|
int | _realSize |
| A zero run consists of a main ZeroRun pattern, which has a meaningful real size (i.e., different from zero), and X-1 fake (i.e., they are zero-sized, and don't exist in a real implementation) patterns, with X being the size of the zero run.
|
|
Definition at line 155 of file fpc.hh.
◆ ZeroRun()
gem5::compression::FPC::ZeroRun::ZeroRun |
( |
const DictionaryEntry | bytes, |
|
|
const int | match_location ) |
|
inline |
◆ getRunLength()
int gem5::compression::FPC::ZeroRun::getRunLength |
( |
| ) |
const |
|
inline |
Get the number of zeros in the run so far.
- Returns
- The number of zeros in this run.
Definition at line 188 of file fpc.hh.
References _runLength.
◆ getSizeBits()
std::size_t gem5::compression::FPC::ZeroRun::getSizeBits |
( |
| ) |
const |
|
inlineoverride |
◆ setRealSize()
void gem5::compression::FPC::ZeroRun::setRealSize |
( |
int | size | ) |
|
|
inline |
When the real size is set it means that we are adding the main zero run pattern.
When that happens, the metadata length must also be taken into account for the size calculation.
- Parameters
-
size | Number of bits used to represent the number of zeros in the run. |
Definition at line 205 of file fpc.hh.
References _realSize.
◆ setRunLength()
void gem5::compression::FPC::ZeroRun::setRunLength |
( |
int | length | ) |
|
|
inline |
Set the number of zeros in the run so far.
- Parameters
-
The | number of zeros in this run. |
Definition at line 195 of file fpc.hh.
References _runLength.
◆ _realSize
int gem5::compression::FPC::ZeroRun::_realSize |
|
private |
A zero run consists of a main ZeroRun pattern, which has a meaningful real size (i.e., different from zero), and X-1 fake (i.e., they are zero-sized, and don't exist in a real implementation) patterns, with X being the size of the zero run.
Definition at line 167 of file fpc.hh.
Referenced by getSizeBits(), and setRealSize().
◆ _runLength
int gem5::compression::FPC::ZeroRun::_runLength |
|
private |
The documentation for this class was generated from the following file: