Commit 0aa68677 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Make it work better with icc. Addresses #1185.

git-svn-id: file:///svn/tokudb.1131b+1080a+1185+nostatementexprs@6468 c7de825b-a66e-492c-adef-691d508d4ae1
parent 38084151
// read the processor time stamp register // read the processor time stamp register
#if defined __i386__ #if defined __ICC
#define USE_RDTSC 1
#define rdtsc _rdtsc
#elif defined __i386__
#define USE_RDTSC 1 #define USE_RDTSC 1
...@@ -12,8 +17,7 @@ static inline unsigned long long rdtsc() { ...@@ -12,8 +17,7 @@ static inline unsigned long long rdtsc() {
return ((unsigned long long) hi << 32ULL) + (unsigned long long) lo; return ((unsigned long long) hi << 32ULL) + (unsigned long long) lo;
} }
#else #elif defined __x86_64__
#if defined __x86_64__
#define USE_RDTSC 1 #define USE_RDTSC 1
...@@ -26,9 +30,6 @@ static inline unsigned long long rdtsc() { ...@@ -26,9 +30,6 @@ static inline unsigned long long rdtsc() {
return r; return r;
} }
#else
#define USE_RDTSC 0 #define USE_RDTSC 0
#endif #endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment