Formatting/Whitespace Cleanup
Various fixes to formatting and whitespace
This commit is contained in:
1 parent
b8edd8aedc
commit
93b16a4a2d
97 files changed
+673
-657
No files matched your search
@@ -146,18 +146,18 @@ static inline uint64_t __rdtsc()
|
||||
{
|
||||
uint32_t lo, hi;
|
||||
#ifdef _LP64
|
||||
__asm__ __volatile__ ("xorl %%eax,%%eax \n cpuid"
|
||||
__asm__ __volatile__("xorl %%eax,%%eax \n cpuid"
|
||||
::: "%rax", "%rbx", "%rcx", "%rdx");
|
||||
__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));
|
||||
__asm__ __volatile__("rdtsc" : "=a" (lo), "=d" (hi));
|
||||
return (uint64_t)hi << 32 | lo;
|
||||
#else
|
||||
__asm__ __volatile__ (
|
||||
__asm__ __volatile__(
|
||||
"xor %%eax,%%eax;"
|
||||
"push %%ebx;"
|
||||
"cpuid;"
|
||||
"pop %%ebx;"
|
||||
::: "%eax", "%ecx", "%edx");
|
||||
__asm__ __volatile__ ("rdtsc" : "=a" (lo), "=d" (hi));
|
||||
__asm__ __volatile__("rdtsc" : "=a" (lo), "=d" (hi));
|
||||
#endif
|
||||
return (uint64_t)hi << 32 | lo;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user