From 1f0c894080e0a3d62694a056456e378e36eb12a1 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 23 Apr 2023 17:55:16 -0400 Subject: Refactor Split linux, darwin, and x86 into separate modules --- x86.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 x86.h (limited to 'x86.h') 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 -- cgit