From 97880a89aeb26d0434022dae8ddf706db04e10ad Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 29 Oct 2017 16:20:07 +0100 Subject: [PATCH] Clobber ecx register. --- client/TracyProfiler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index 3f099985..ef2e5124 100644 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -70,7 +70,7 @@ public: return t; #elif defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 uint32_t eax, edx; - asm volatile ( "rdtscp" : "=a" (eax), "=d" (edx) :: ); + asm volatile ( "rdtscp" : "=a" (eax), "=d" (edx) :: "%ecx" ); return ( uint64_t( edx ) << 32 ) + uint64_t( eax ); #endif }