aboutsummaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
Diffstat (limited to 'x86.h')
-rw-r--r--x86.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/x86.h b/x86.h
new file mode 100644
index 0000000..9d7ec4f
--- /dev/null
+++ b/x86.h
@@ -0,0 +1,13 @@
+#ifndef WHATAMI_X86_H
+#define WHATAMI_X86_H
+#if defined(__x86_64__) || defined(__i386__)
+
+#ifndef bit_HTT
+// Hyperthreading
+#define bit_HTT (1 << 28)
+#endif
+// Virtualization
+#define bit_VRT (1 << 31)
+
+#endif // x86_64 || i386
+#endif //WHATAMI_X86_H