[gtk: 2/5] Replaced && with || for POPCNT checks to fix the logic.




commit e5b89569fdf634ac3920e56d9a10aa2809a34849
Author: scherek <scherek outlook com>
Date:   Sat Jun 12 17:32:19 2021 +0200

    Replaced && with || for POPCNT checks to fix the logic.

 gtk/gtkpopcountprivate.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpopcountprivate.h b/gtk/gtkpopcountprivate.h
index 3862f5cb24..38c4d6f95e 100644
--- a/gtk/gtkpopcountprivate.h
+++ b/gtk/gtkpopcountprivate.h
@@ -20,7 +20,7 @@
 
 #pragma once
 
-#if defined(_MSC_VER) && !defined(_M_ARM) && !defined(_M_ARM64) && defined(__AVX__) && defined(__SSE4_2__) 
&& defined(__POPCNT__)
+#if defined(_MSC_VER) && !defined(_M_ARM) && !defined(_M_ARM64) && defined(__AVX__) || defined(__SSE4_2__) 
|| defined(__POPCNT__)
 #include <intrin.h>
 
 static inline guint


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]