aboutsummaryrefslogtreecommitdiffstats
path: root/erts/include/internal/ethread.h
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2015-07-16 11:24:51 +0200
committerLukas Larsson <[email protected]>2016-02-02 10:45:22 +0100
commitdc1e3933e633d9d7527e6df044895d12d3845e14 (patch)
tree45ae1272d657fc2a47178cfedc1c29105e92c318 /erts/include/internal/ethread.h
parent2181f97655906dac3b18333c149c384e1dc81c2b (diff)
downloadotp-dc1e3933e633d9d7527e6df044895d12d3845e14.tar.gz
otp-dc1e3933e633d9d7527e6df044895d12d3845e14.tar.bz2
otp-dc1e3933e633d9d7527e6df044895d12d3845e14.zip
erts: Add rdtscp instruction check
Diffstat (limited to 'erts/include/internal/ethread.h')
-rw-r--r--erts/include/internal/ethread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/erts/include/internal/ethread.h b/erts/include/internal/ethread.h
index 4eeb7097f4..9956473057 100644
--- a/erts/include/internal/ethread.h
+++ b/erts/include/internal/ethread.h
@@ -282,6 +282,10 @@ ETHR_PROTO_NORETURN__ ethr_fatal_error__(const char *file,
(__builtin_expect(ethr_runtime__.conf.have_sse2 != 0, 1))
# define ETHR_X86_RUNTIME_CONF_HAVE_NO_SSE2__ \
(__builtin_expect(ethr_runtime__.conf.have_sse2 == 0, 0))
+# define ETHR_X86_RUNTIME_CONF_HAVE_RDTSCP__ \
+ (__builtin_expect(ethr_runtime__.conf.have_rdtscp != 0, 1))
+# define ETHR_X86_RUNTIME_CONF_HAVE_NO_RDTSCP__ \
+ (__builtin_expect(ethr_runtime__.conf.have_rdtscp == 0, 0))
#endif
#if (defined(__GNUC__) \
@@ -300,6 +304,7 @@ typedef struct {
#if defined(ETHR_X86_RUNTIME_CONF__)
int have_dw_cmpxchg;
int have_sse2;
+ int have_rdtscp;
#endif
#if defined(ETHR_PPC_RUNTIME_CONF__)
int have_lwsync;