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

Clobber ecx register.

This commit is contained in:
Bartosz Taudul 2017-10-29 16:20:07 +01:00
parent a220043114
commit 97880a89ae

View File

@ -70,7 +70,7 @@ public:
return t; return t;
#elif defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 #elif defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64
uint32_t eax, edx; 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 ); return ( uint64_t( edx ) << 32 ) + uint64_t( eax );
#endif #endif
} }