From 3b5d4771a0af5b4fc89ec77f43826b9ae2544949 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 29 Oct 2019 15:40:04 +0100 Subject: Fix wrong detection of AMD CPUs. --- src/Crypto/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Crypto/cpu.c') diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c index b8316962..62574983 100644 --- a/src/Crypto/cpu.c +++ b/src/Crypto/cpu.c @@ -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]) -- cgit v1.2.3