aboutsummaryrefslogtreecommitdiff
path: root/x86.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-04-23 17:55:16 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-04-23 17:55:16 -0400
commit1f0c894080e0a3d62694a056456e378e36eb12a1 (patch)
tree7abd3928808aa9f03a4dd17dd3eb5ecde7607d18 /x86.h
parent0ec45301dc4d1a61cc1d9bd2906cd010c88f81c0 (diff)
downloadwhatami-1f0c894080e0a3d62694a056456e378e36eb12a1.tar.gz
Refactor
Split linux, darwin, and x86 into separate modules
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