mirror of
https://github.com/google/cpu_features.git
synced 2025-04-28 15:33:37 +02:00
Parantheses added to CPUID macro
This commit is contained in:
parent
319bd6f26b
commit
9d9134cf0b
@ -149,7 +149,7 @@ X86Info GetX86Info(void) {
|
||||
return info;
|
||||
}
|
||||
|
||||
#define CPUID(FAMILY, MODEL) (((FAMILY & 0xFF) << 8) | (MODEL & 0xFF))
|
||||
#define CPUID(FAMILY, MODEL) ((((FAMILY) & 0xFF) << 8) | ((MODEL) & 0xFF))
|
||||
|
||||
X86Microarchitecture GetX86Microarchitecture(const X86Info* info) {
|
||||
if (memcmp(info->vendor, "GenuineIntel", sizeof(info->vendor)) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user