Context algorithm
Semi-predictive context algorithm implementation
|
Go to the source code of this file.
Functions | |
statistics_t | allocStatistics () |
Creates and initializes a new statistics structure instance. More... | |
void | freeStatistics (statistics_t st) |
Deletes a statistics structure instance. More... | |
statistics_t | getStatistics () |
Returns a new statistics structure, can be created or obtained from the buffer. More... | |
void | returnStatistics (statistics_t st) |
Puts a statistics structure that is no longer used into the buffer. More... | |
void | freeBuffer () |
Deletes all statistics stored in the buffer. More... | |
Variables | |
static Uint | stacktop =0 |
static Uint | stackalloc =0 |
static Uint * | stack = NULL |
statistics_t allocStatistics | ( | ) |
Creates and initializes a new statistics structure instance.
Definition at line 29 of file statistics.c.
void freeBuffer | ( | ) |
Deletes all statistics stored in the buffer.
Definition at line 74 of file statistics.c.
void freeStatistics | ( | statistics_t | st | ) |
Deletes a statistics structure instance.
[in] | st | statistics to delete. |
Definition at line 42 of file statistics.c.
statistics_t getStatistics | ( | ) |
Returns a new statistics structure, can be created or obtained from the buffer.
Definition at line 51 of file statistics.c.
void returnStatistics | ( | statistics_t | st | ) |
Puts a statistics structure that is no longer used into the buffer.
[in] | st | the statistics to return to the buffer |
Definition at line 66 of file statistics.c.
|
static |
Definition at line 24 of file statistics.c.
|
static |
Definition at line 24 of file statistics.c.
|
static |
Definition at line 24 of file statistics.c.