osprey-gcc/gcc/alloc-pool.c File Reference

#include "config.h"
#include "system.h"
#include "alloc-pool.h"
#include "hashtab.h"

Include dependency graph for alloc-pool.c:

Go to the source code of this file.

Data Types

type  allocation_object_def

Defines

#define align_eight(x)   (((x+7) >> 3) << 3)
#define ALLOCATION_OBJECT_PTR_FROM_USER_PTR(X)
#define USER_PTR_FROM_ALLOCATION_OBJECT_PTR(X)   ((void *) (((allocation_object *) (X))->u.data))

Typedefs

typedef struct
allocation_object_def 
allocation_object

Functions/Subroutines

alloc_pool create_alloc_pool (const char *name, size_t size, size_t num)
void free_alloc_pool (alloc_pool pool)
voidpool_alloc (alloc_pool pool)
void pool_free (alloc_pool pool, void *ptr)
void dump_alloc_pool_statistics (void)


Define Documentation

#define align_eight (  )     (((x+7) >> 3) << 3)

Definition at line 28 of file alloc-pool.c.

Referenced by create_alloc_pool(), and pool_alloc().

#define ALLOCATION_OBJECT_PTR_FROM_USER_PTR ( X   ) 

Value:

((allocation_object *) (((char *) (X))        \
         - offsetof (allocation_object, u.data)))

Definition at line 53 of file alloc-pool.c.

Referenced by pool_alloc(), and pool_free().

#define USER_PTR_FROM_ALLOCATION_OBJECT_PTR ( X   )     ((void *) (((allocation_object *) (X))->u.data))

Definition at line 58 of file alloc-pool.c.

Referenced by pool_alloc().


Typedef Documentation


Function Documentation

alloc_pool create_alloc_pool ( const char *  name,
size_t  size,
size_t  num 
)

void dump_alloc_pool_statistics ( void   ) 

Definition at line 331 of file alloc-pool.c.

Referenced by finalize().

void free_alloc_pool ( alloc_pool  pool  ) 

void* pool_alloc ( alloc_pool  pool  ) 

void pool_free ( alloc_pool  pool,
void ptr 
)


Generated on Wed Apr 8 14:19:29 2009 for Open64 by  doxygen 1.5.6