Lolly 1.4.28
|
Go to the source code of this file.
Macros | |
#define | alloc_ptr(i) alloc_table[i] |
#define | ind(ptr) (*((void**) ptr)) |
Functions | |
bool | break_stub (void *ptr) |
int | mem_used () |
void * | safe_malloc (size_t sz) |
void * | enlarge_malloc (size_t sz) |
void * | fast_alloc (size_t sz) |
void | fast_free (void *ptr, size_t sz) |
void * | fast_realloc (void *ptr, size_t old_size, size_t new_size) |
void * | fast_new (size_t s) |
void | fast_delete (void *ptr) |
void * | fast_alloc_mw (size_t s) |
void | fast_free_mw (void *ptr, size_t s) |
int | compute_free (void *ptr) |
void | mem_info () |
void | mem_init () |
Variables | |
void * | alloc_table [MAX_FAST] |
char * | alloc_mem = NULL |
size_t | alloc_remains = 0 |
int | allocated = 0 |
int | fast_chunks = 0 |
int | large_uses = 0 |
int | MEM_DEBUG = 0 |
#define alloc_ptr | ( | i | ) | alloc_table[i] |
Definition at line 41 of file fast_alloc.cpp.
bool break_stub | ( | void * | ptr | ) |
int mem_used | ( | ) |
Definition at line 267 of file fast_alloc.cpp.
Definition at line 58 of file fast_alloc.cpp.
Definition at line 82 of file fast_alloc.cpp.
Definition at line 102 of file fast_alloc.cpp.
Definition at line 121 of file fast_alloc.cpp.
Definition at line 141 of file fast_alloc.cpp.
Definition at line 203 of file fast_alloc.cpp.
Definition at line 233 of file fast_alloc.cpp.
int compute_free | ( | void * | ptr | ) |
void mem_info | ( | ) |
Definition at line 278 of file fast_alloc.cpp.
void mem_init | ( | ) |
Definition at line 308 of file fast_alloc.cpp.
Definition at line 25 of file fast_alloc.cpp.
Definition at line 26 of file fast_alloc.cpp.
size_t alloc_remains = 0 |
Definition at line 31 of file fast_alloc.cpp.
int allocated = 0 |
Definition at line 32 of file fast_alloc.cpp.
int fast_chunks = 0 |
Definition at line 33 of file fast_alloc.cpp.
int large_uses = 0 |
Definition at line 34 of file fast_alloc.cpp.
int MEM_DEBUG = 0 |
Definition at line 35 of file fast_alloc.cpp.