Cleanup the clobber list.
Этот коммит содержится в:
родитель
1877dfd0df
Коммит
b7fa0e312f
@ -36,7 +36,7 @@ opal_sys_timer_get_cycles(void)
|
|||||||
__asm__ __volatile__ ("cpuid\n\t"
|
__asm__ __volatile__ ("cpuid\n\t"
|
||||||
"rdtsc\n\t"
|
"rdtsc\n\t"
|
||||||
: "=a" (a), "=d" (d)
|
: "=a" (a), "=d" (d)
|
||||||
:: "%rax", "%rbx", "%rcx", "%rdx");
|
:: "rbx", "rcx");
|
||||||
#else
|
#else
|
||||||
/* If we need higher accuracy we should implement the algorithm proposed
|
/* If we need higher accuracy we should implement the algorithm proposed
|
||||||
* on the Intel document referenced above. However, in the context of MPI
|
* on the Intel document referenced above. However, in the context of MPI
|
||||||
@ -44,9 +44,9 @@ opal_sys_timer_get_cycles(void)
|
|||||||
* can afford a small inaccuracy.
|
* can afford a small inaccuracy.
|
||||||
*/
|
*/
|
||||||
__asm__ __volatile__ ("rdtscp\n\t"
|
__asm__ __volatile__ ("rdtscp\n\t"
|
||||||
"cpuid"
|
"cpuid\n\t"
|
||||||
: "=a" (a), "=d" (d)
|
: "=a" (a), "=d" (d)
|
||||||
:: "%rax", "%rbx", "%rcx", "%rdx");
|
:: "rbx", "rcx");
|
||||||
#endif
|
#endif
|
||||||
return ((opal_timer_t)a) | (((opal_timer_t)d) << 32);
|
return ((opal_timer_t)a) | (((opal_timer_t)d) << 32);
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ opal_sys_timer_get_cycles(void)
|
|||||||
__asm__ __volatile__("cpuid\n"
|
__asm__ __volatile__("cpuid\n"
|
||||||
"rdtsc\n"
|
"rdtsc\n"
|
||||||
: "=A"(ret)
|
: "=A"(ret)
|
||||||
:: "%eax", "%ebx", "%ecx", "%edx");
|
:: "ebx", "ecx", "edx");
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user