mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-04-21 15:39:06 +05:30
cpuid_vendor_id.mod.c: reformat: replace unsigned int *
to unsigned*
This commit is contained in:
parent
ae4a82c2aa
commit
3a31367749
@ -71,9 +71,9 @@ static inline void cpuid_vendor_id(char vendor[VENDOR_ID_LEN]) {
|
||||
|
||||
// https://learn.microsoft.com/en-us/cpp/intrinsics/cpuid-cpuidex
|
||||
// ?view=msvc-170#example
|
||||
((unsigned int *) vendor)[0] = v[EBX];
|
||||
((unsigned int *) vendor)[1] = v[EDX];
|
||||
((unsigned int *) vendor)[2] = v[ECX];
|
||||
((unsigned*) vendor)[0] = v[EBX];
|
||||
((unsigned*) vendor)[1] = v[EDX];
|
||||
((unsigned*) vendor)[2] = v[ECX];
|
||||
vendor[VENDOR_ID_LEN - 1] = '\0';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user