From 098bc9f06d5262860a9c5cb8ee1083d6e237d2ee Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sat, 12 Jul 2014 16:46:36 +0200 Subject: [PATCH] tests: use the gcc rdtsc() implementation also for intel cc --- testprof/x86_prof.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/testprof/x86_prof.c b/testprof/x86_prof.c index 534a4fa..ca9441c 100644 --- a/testprof/x86_prof.c +++ b/testprof/x86_prof.c @@ -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... */