ARB
Macros | Functions | Variables
mem.cxx File Reference
#include "mem.h"
#include <stdio.h>
#include <attributes.h>
#include <cxxforward.h>
Include dependency graph for mem.cxx:

Go to the source code of this file.

Macros

#define MINSIZE   72
 

Functions

static void clearUp (void)
 
static __ATTR__NORETURN void outOfMemory (void)
 
void * newBlock (size_t s)
 
void freeBlock_ (void **vv)
 
void ** newMatrix (size_t nrow, size_t ncol, size_t s)
 
void freeMatrix_ (void ***mm)
 

Variables

static void * M =NULp
 
static void * D =NULp
 
static size_t A =0
 

Macro Definition Documentation

#define MINSIZE   72

Definition at line 16 of file mem.cxx.

Referenced by freeBlock_(), and newBlock().

Function Documentation

static void clearUp ( void  )
static

Definition at line 23 of file mem.cxx.

References D, and M.

Referenced by main(), and outOfMemory().

static __ATTR__NORETURN void outOfMemory ( void  )
static

Definition at line 30 of file mem.cxx.

References clearUp(), and EXIT_FAILURE.

Referenced by newBlock().

void* newBlock ( size_t  s)

Definition at line 39 of file mem.cxx.

References D, M, MINSIZE, NULp, and outOfMemory().

Referenced by Align(), newIsland(), and newMatrix().

void freeBlock_ ( void **  vv)

Definition at line 63 of file mem.cxx.

References D, M, MINSIZE, NULp, and s.

void** newMatrix ( size_t  nrow,
size_t  ncol,
size_t  s 
)

Definition at line 87 of file mem.cxx.

References newBlock(), and s.

Referenced by Align(), and initTrnsprob().

void freeMatrix_ ( void ***  mm)

Definition at line 100 of file mem.cxx.

References freeBlock.

Variable Documentation

void* M =NULp
static

Definition at line 18 of file mem.cxx.

Referenced by DI_MATRIX::calculate(), clearUp(), freeBlock_(), getEntropy(), newBlock(), and updateEntropy().

void * D =NULp
static

Definition at line 18 of file mem.cxx.

Referenced by clearUp(), freeBlock_(), newBlock(), and update_min_mutations().

size_t A =0
static

Definition at line 19 of file mem.cxx.