Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/code/handmade_platform.h b/code/handmade_platform.h
- index e72e919..8eb1b39 100644
- --- a/code/handmade_platform.h
- +++ b/code/handmade_platform.h
- @@ -49,6 +49,9 @@ extern "C" {
- #if COMPILER_MSVC
- #include <intrin.h>
- #endif
- +#if COMPILER_LLVM
- +#include <x86intrin.h>
- +#endif
- //
- // NOTE(casey): Types
- @@ -160,7 +163,8 @@ extern struct game_memory *DebugGlobalMemory;
- #define END_TIMED_BLOCK_COUNTED(ID, Count) DebugGlobalMemory->Counters[DebugCycleCounter_##ID].CycleCount += __rdtsc() - StartCycleCount##ID; DebugGlobalMemory->Counters[DebugCycleCounter_##ID].HitCount += (Count);
- #else
- #define BEGIN_TIMED_BLOCK(ID)
- -#define END_TIMED_BLOCK(ID)
- +#define END_TIMED_BLOCK(ID)
- +#define END_TIMED_BLOCK_COUNTED(ID, Count)
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement