Skip to content

Commit bb8d0a1

Browse files
committed
Fixed issues found by PVS Studio static analyzer
1 parent e326469 commit bb8d0a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/x86/x86.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,10 @@
572572
// Only starting with ZEN 1 architecture AMD's implementation of AVX is fast enough
573573
if ((f->vendor == CPU_VENDOR_AMD) || (f->vendor == CPU_VENDOR_HYGON))
574574
{
575-
if (f->family < AMD_FAMILY_ZEN_3_4)
576-
return false;
577575
if (f->family == AMD_FAMILY_DHYANA)
578576
return false;
577+
if (f->family < AMD_FAMILY_ZEN_3_4)
578+
return false;
579579
return true;
580580
}
581581
break;

0 commit comments

Comments
 (0)