| 517 | } |
| 518 | |
| 519 | void Internal::Free(void* ptr) |
| 520 | { |
| 521 | #if BF_USE_STOMP_ALLOC |
| 522 | StompFree(ptr); |
| 523 | #elif BF_TRACK_SIZES |
| 524 | uint8* allocPtr = ((uint8*)ptr) - 16; |
| 525 | sAllocSizes[0] -= *((int*)allocPtr); |
| 526 | free(allocPtr); |
| 527 | #else |
| 528 | free(ptr); |
| 529 | #endif |
| 530 | } |
| 531 | |
| 532 | BFRT_EXPORT int64 Internal::GetTickCountMicro() |
| 533 | { |