1
0
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:
パチュリー・ノーレッジ 2025-03-09 14:07:52 +03:00
parent ae4a82c2aa
commit 3a31367749
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -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';
}