1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Properly separate HW timer from MSVC rdtscp optimization.

This commit is contained in:
Bartosz Taudul
2018-04-27 19:40:47 +02:00
parent 488d05bc21
commit 5b6d9769af
4 changed files with 14 additions and 9 deletions
+5
View File
@@ -21,6 +21,11 @@
#if defined _MSC_VER || defined __CYGWIN__ || ( ( defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 ) && !defined __ANDROID__ ) || __ARM_ARCH >= 6
# define TRACY_HW_TIMER
# if defined _MSC_VER || defined __CYGWIN__
// Enable optimization for MSVC __rdtscp() intrin, saving one LHS of a cpu value on the stack.
// This comes at the cost of an unaligned memory write.
# define TRACY_RDTSCP_OPT
# endif
#endif
namespace tracy