mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
15 lines
702 B
C
15 lines
702 B
C
#ifndef COSMOPOLITAN_LIBC_NEXGEN32E_VENDOR_H_
|
|
#define COSMOPOLITAN_LIBC_NEXGEN32E_VENDOR_H_
|
|
#include "libc/nexgen32e/kcpuids.h"
|
|
|
|
#define IsAuthenticAMD() \
|
|
(kCpuids[KCPUIDS_0H][KCPUIDS_EBX] == 0x68747541 /* Auth */ && \
|
|
kCpuids[KCPUIDS_0H][KCPUIDS_EDX] == 0x69746e65 /* enti */ && \
|
|
kCpuids[KCPUIDS_0H][KCPUIDS_ECX] == 0x444d4163 /* cAMD */)
|
|
|
|
#define IsGenuineIntel() \
|
|
(kCpuids[KCPUIDS_0H][KCPUIDS_EBX] == 0x756e6547 /* Genu */ && \
|
|
kCpuids[KCPUIDS_0H][KCPUIDS_EDX] == 0x49656e69 /* ineI */ && \
|
|
kCpuids[KCPUIDS_0H][KCPUIDS_ECX] == 0x6c65746e /* ntel */)
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_NEXGEN32E_VENDOR_H_ */
|