Context algorithm
Semi-predictive context algorithm implementation
 All Data Structures Files Functions Variables Typedefs Macros Pages
statistics.c File Reference
#include "statistics.h"
#include "alpha.h"
#include "spacedef.h"
#include "stack.h"

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 Uintstack = NULL
 

Function Documentation

statistics_t allocStatistics ( )

Creates and initializes a new statistics structure instance.

Returns
a new statistics 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.

Parameters
[in]ststatistics 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.

Returns
a statistics instace

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.

Parameters
[in]stthe statistics to return to the buffer

Definition at line 66 of file statistics.c.

Variable Documentation

Uint * stack = NULL
static

Definition at line 24 of file statistics.c.

Uint stackalloc =0
static

Definition at line 24 of file statistics.c.

Uint stacktop =0
static

Definition at line 24 of file statistics.c.