This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| void | FreeMemory (void *ptr) |
| void * | GetClearedMemory (int size) |
| void * | GetMemory (unsigned long size) |
| int | MemorySize (void *ptr) |
| void | PrintMemorySize (unsigned long size) |
| int | TotalAllocatedMemory (void) |
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
|
Definition at line 54 of file l_mem.c. References ptr(). Referenced by AllocBrush(), AllocNode(), AllocPortal(), AllocWinding(), FreeBrush(), FreeMemory(), FreePortal(), FreeWinding(), GetClearedMemory(), GetMemory(), Tree_Free(), Tree_Free_r(), and Tree_FreePortals_r(). 00055 {
00056 #if defined(WIN32) || defined(_WIN32)
00057 #ifdef __WATCOMC__
00058 //Intel 32 bits memory addressing, 16 bytes aligned
00059 return (_msize(ptr) + 15) >> 4 << 4;
00060 #else
00061 return _msize(ptr);
00062 #endif
00063 #else
00064 return 0;
00065 #endif
00066 } //end of the function MemorySize
|
Here is the call graph for this function:

|
|
Definition at line 34 of file l_mem.c. References Log_Print(). Referenced by AAS_AllocMaxAAS(), AAS_FreeMaxAAS(), HL_AllocMaxBSP(), HL_FreeMaxBSP(), Q1_AllocMaxBSP(), Q1_FreeMaxBSP(), Q2_AllocMaxBSP(), Q2_FreeMaxBSP(), Sin_AllocMaxBSP(), Sin_FreeMaxBSP(), and Tree_Free(). 00035 {
00036 unsigned long number1, number2, number3;
00037 number1 = size >> 20;
00038 number2 = (size & 0xFFFFF) >> 10;
00039 number3 = (size & 0x3FF);
00040 if (number1) Log_Print("%ld MB", number1);
00041 if (number1 && number2) Log_Print(" and ");
00042 if (number2) Log_Print("%ld KB", number2);
00043 if (number2 && number3) Log_Print(" and ");
00044 if (number3) Log_Print("%ld bytes", number3);
00045 } //end of the function PrintFileSize
|
Here is the call graph for this function:

|
|
Definition at line 114 of file l_mem.c. 00115 {
00116 return allocedmemory;
00117 } //end of the function TotalAllocatedMemory
|
1.3.9.1