tests: use the gcc rdtsc() implementation also for intel cc
This commit is contained in:
parent
8c488289f0
commit
098bc9f06d
@ -43,11 +43,7 @@ void tally_results(int type)
|
|||||||
ulong64 rdtsc (void)
|
ulong64 rdtsc (void)
|
||||||
{
|
{
|
||||||
#if defined __GNUC__ && !defined(LTC_NO_ASM)
|
#if defined __GNUC__ && !defined(LTC_NO_ASM)
|
||||||
#ifdef INTEL_CC
|
#if defined(__i386__) || defined(__x86_64__)
|
||||||
ulong64 a;
|
|
||||||
asm ( " rdtsc ":"=A"(a));
|
|
||||||
return a;
|
|
||||||
#elif defined(__i386__) || defined(__x86_64__)
|
|
||||||
/* version from http://www.mcs.anl.gov/~kazutomo/rdtsc.html
|
/* version from http://www.mcs.anl.gov/~kazutomo/rdtsc.html
|
||||||
* the old code always got a warning issued by gcc, clang did not complain...
|
* the old code always got a warning issued by gcc, clang did not complain...
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user