tests: use the gcc rdtsc() implementation also for intel cc

This commit is contained in:
Steffen Jaeckel 2014-07-12 16:46:36 +02:00
parent 8c488289f0
commit 098bc9f06d

View File

@ -43,11 +43,7 @@ void tally_results(int type)
ulong64 rdtsc (void)
{
#if defined __GNUC__ && !defined(LTC_NO_ASM)
#ifdef INTEL_CC
ulong64 a;
asm ( " rdtsc ":"=A"(a));
return a;
#elif defined(__i386__) || defined(__x86_64__)
#if defined(__i386__) || defined(__x86_64__)
/* version from http://www.mcs.anl.gov/~kazutomo/rdtsc.html
* the old code always got a warning issued by gcc, clang did not complain...
*/