diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-04-23 17:55:16 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-04-23 17:55:16 -0400 |
commit | 1f0c894080e0a3d62694a056456e378e36eb12a1 (patch) | |
tree | 7abd3928808aa9f03a4dd17dd3eb5ecde7607d18 /x86.h | |
parent | 0ec45301dc4d1a61cc1d9bd2906cd010c88f81c0 (diff) | |
download | whatami-1f0c894080e0a3d62694a056456e378e36eb12a1.tar.gz |
Refactor
Split linux, darwin, and x86 into separate modules
Diffstat (limited to 'x86.h')
-rw-r--r-- | x86.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |