package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
425 B
11 lines
425 B
--- a/src/lib/openjp2/ht_dec.c |
|
+++ b/src/lib/openjp2/ht_dec.c |
|
@@ -69,7 +69,7 @@ static OPJ_BOOL only_cleanup_pass_is_decoded = OPJ_FALSE; |
|
static INLINE |
|
OPJ_UINT32 population_count(OPJ_UINT32 val) |
|
{ |
|
-#ifdef OPJ_COMPILER_MSVC |
|
+#if defined(OPJ_COMPILER_MSVC) && (defined(_M_IX86) || defined(_M_AMD64)) |
|
return (OPJ_UINT32)__popcnt(val); |
|
#elif (defined OPJ_COMPILER_GNUC) |
|
return (OPJ_UINT32)__builtin_popcount(val);
|
|
|