Fix wrong detection of AMD CPUs.

This commit is contained in:
Mounir IDRASSI 2019-10-29 15:40:04 +01:00
parent afe6b2f45b
commit 3b5d4771a0
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -218,8 +218,8 @@ VC_INLINE int IsAMD(const uint32 output[4])
{
// This is the "AuthenticAMD" string
return (output[1] /*EBX*/ == 0x68747541) &&
(output[2] /*ECX*/ == 0x69746E65) &&
(output[3] /*EDX*/ == 0x444D4163);
(output[2] /*ECX*/ == 0x444D4163) &&
(output[3] /*EDX*/ == 0x69746E65);
}
VC_INLINE int IsHygon(const uint32 output[4])