doom3-gpl
Doom 3 GPL source release
|
#include "../idlib/precompiled.h"
Go to the source code of this file.
Classes | |
class | idHeap |
struct | idHeap::page_s |
struct | idHeap::mediumHeapEntry_s |
Macros | |
#define | USE_LIBC_MALLOC 0 |
#define | SMALL_HEADER_SIZE ( (int) ( sizeof( byte ) + sizeof( byte ) ) ) |
#define | MEDIUM_HEADER_SIZE ( (int) ( sizeof( mediumHeapEntry_s ) + sizeof( byte ) ) ) |
#define | LARGE_HEADER_SIZE ( (int) ( sizeof( dword * ) + sizeof( byte ) ) ) |
#define | ALIGN_SIZE(bytes) ( ( (bytes) + ALIGN - 1 ) & ~(ALIGN - 1) ) |
#define | SMALL_ALIGN(bytes) ( ALIGN_SIZE( (bytes) + SMALL_HEADER_SIZE ) - SMALL_HEADER_SIZE ) |
#define | MEDIUM_SMALLEST_SIZE ( ALIGN_SIZE( 256 ) + ALIGN_SIZE( MEDIUM_HEADER_SIZE ) ) |
Functions | |
void | Mem_ClearFrameStats (void) |
void | Mem_GetFrameStats (memoryStats_t &allocs, memoryStats_t &frees) |
void | Mem_GetStats (memoryStats_t &stats) |
void | Mem_UpdateStats (memoryStats_t &stats, int size) |
void | Mem_UpdateAllocStats (int size) |
void | Mem_UpdateFreeStats (int size) |
void * | Mem_Alloc (const int size) |
void | Mem_Free (void *ptr) |
void * | Mem_Alloc16 (const int size) |
void | Mem_Free16 (void *ptr) |
void * | Mem_ClearedAlloc (const int size) |
void | Mem_AllocDefragBlock (void) |
char * | Mem_CopyString (const char *in) |
void | Mem_Dump_f (const idCmdArgs &args) |
void | Mem_DumpCompressed_f (const idCmdArgs &args) |
void | Mem_Init (void) |
void | Mem_Shutdown (void) |
void | Mem_EnableLeakTest (const char *name) |
#define ALIGN_SIZE | ( | bytes | ) | ( ( (bytes) + ALIGN - 1 ) & ~(ALIGN - 1) ) |
#define MEDIUM_SMALLEST_SIZE ( ALIGN_SIZE( 256 ) + ALIGN_SIZE( MEDIUM_HEADER_SIZE ) ) |
#define SMALL_ALIGN | ( | bytes | ) | ( ALIGN_SIZE( (bytes) + SMALL_HEADER_SIZE ) - SMALL_HEADER_SIZE ) |
void Mem_GetFrameStats | ( | memoryStats_t & | allocs, |
memoryStats_t & | frees | ||
) |
void Mem_GetStats | ( | memoryStats_t & | stats | ) |
void Mem_UpdateStats | ( | memoryStats_t & | stats, |
int | size | ||
) |