summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-07-07 13:30:11 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-07-07 13:35:07 -0700
commit07b287020c9ada750251344c05b52f541be4d533 (patch)
treee8721a6b7c630193935e952edfaf2c1e6d75b841 /configure
parent25b51b2c44f16f46d6bd5db4f3421ae57909924e (diff)
x86/timer: implement an intrinsic-based version for rdtsc (AV_READ_TIME).
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index a08b3af79e..ec68648520 100755
--- a/configure
+++ b/configure
@@ -1121,6 +1121,7 @@ HAVE_LIST="
netinet_sctp_h
poll_h
posix_memalign
+ rdtsc
round
roundf
sched_getaffinity
@@ -2642,6 +2643,8 @@ check_cc <<EOF && enable inline_asm
void foo(void) { __asm__ volatile ("" ::); }
EOF
+check_code cc intrin.h "__rdtsc()" && enable rdtsc
+
_restrict=
for restrict_keyword in restrict __restrict__ __restrict; do
check_cc <<EOF && _restrict=$restrict_keyword && break