Skip to content

Commit

Permalink
Merge pull request #3951 from davidlt/disable-rdtscp-tests-on-aarch64
Browse files Browse the repository at this point in the history
ARM64 -- DataFormats/Math: rdtscp.h disable on aarch64
  • Loading branch information
ktf committed May 22, 2014
2 parents a2aac79 + 9fcfc98 commit 6c35faf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DataFormats/Math/test/rdtscp.h
@@ -1,7 +1,7 @@
#ifndef RDPSCP_H
#define RDPSCP_H
// performance test
#ifndef __arm__
#if !defined(__arm__) && !defined(__aarch64__)
#include <x86intrin.h>
#include <cpuid.h>
#ifdef __clang__
Expand Down Expand Up @@ -33,11 +33,11 @@ namespace {
}
}
#endif
#else // arm
#else // !defined(__arm__) && !defined(__aarch64__)
namespace {
inline bool has_rdtscp() { return false;}
inline volatile unsigned long long rdtsc() {return 0;}
}
#endif // arm
#endif // !defined(__arm__) && !defined(__aarch64__)

#endif

0 comments on commit 6c35faf

Please sign in to comment.