Classes | Defines | Typedefs | Functions | Variables

/home/hauberg/Dokumenter/Capture/humim-tracker-0.1/src/OpenTissue/third_party/bundled/qhull/mem.h File Reference

Go to the source code of this file.

Classes

struct  qhmemT

Defines

#define qhmem_ERRmem   4
#define qhmem_ERRqhull   5
#define qh_memalloc_(size, freelistp, object, type)
#define qh_memfree_(object, size, freelistp)

Typedefs

typedef unsigned long ptr_intT
typedef struct qhmemT qhmemT

Functions

void * qh_memalloc (int insize)
void qh_memfree (void *object, int size)
void qh_memfreeshort (int *curlong, int *totlong)
void qh_meminit (FILE *ferr)
void qh_meminitbuffers (int tracelevel, int alignment, int numsizes, int bufsize, int bufinit)
void qh_memsetup (void)
void qh_memsize (int size)
void qh_memstatistics (FILE *fp)

Variables

qhmemT qhmem

Define Documentation

#define qh_memalloc_ (   size,
  freelistp,
  object,
  type 
)
Value:
{\
  freelistp= qhmem.freelists + qhmem.indextable[size];\
  if ((object= (type*)*freelistp)) {\
    qhmem.cntquick++;  \
    *freelistp= *((void **)*freelistp);\
  }else object= (type*)qh_memalloc (size);}
#define qh_memfree_ (   object,
  size,
  freelistp 
)
Value:
{\
  if (object) { \
    qhmem .freeshort++;\
    freelistp= qhmem.freelists + qhmem.indextable[size];\
    *((void **)object)= *freelistp;\
    *freelistp= object;}}
#define qhmem_ERRmem   4
#define qhmem_ERRqhull   5

Typedef Documentation

typedef unsigned long ptr_intT
typedef struct qhmemT qhmemT

Function Documentation

void* qh_memalloc ( int  insize  ) 
void qh_memfree ( void *  object,
int  size 
)
void qh_memfreeshort ( int *  curlong,
int *  totlong 
)
void qh_meminit ( FILE *  ferr  ) 
void qh_meminitbuffers ( int  tracelevel,
int  alignment,
int  numsizes,
int  bufsize,
int  bufinit 
)
void qh_memsetup ( void   ) 
void qh_memsize ( int  size  ) 
void qh_memstatistics ( FILE *  fp  ) 

Variable Documentation