Advertisement
Guest User

Untitled

a guest
May 13th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. diff --git a/code/handmade_platform.h b/code/handmade_platform.h
  2. index e72e919..8eb1b39 100644
  3. --- a/code/handmade_platform.h
  4. +++ b/code/handmade_platform.h
  5. @@ -49,6 +49,9 @@ extern "C" {
  6.  #if COMPILER_MSVC
  7.  #include <intrin.h>
  8.  #endif
  9. +#if COMPILER_LLVM
  10. +#include <x86intrin.h>
  11. +#endif
  12.  
  13.  //
  14.  // NOTE(casey): Types
  15. @@ -160,7 +163,8 @@ extern struct game_memory *DebugGlobalMemory;
  16.  #define END_TIMED_BLOCK_COUNTED(ID, Count) DebugGlobalMemory->Counters[DebugCycleCounter_##ID].CycleCount += __rdtsc() - StartCycleCount##ID; DebugGlobalMemory->Counters[DebugCycleCounter_##ID].HitCount += (Count);
  17.  #else
  18.  #define BEGIN_TIMED_BLOCK(ID)
  19. -#define END_TIMED_BLOCK(ID)
  20. +#define END_TIMED_BLOCK(ID)
  21. +#define END_TIMED_BLOCK_COUNTED(ID, Count)
  22.  #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement