early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/openjpeg/arm.patch
vendored
Executable file
13
externals/vcpkg/ports/openjpeg/arm.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/lib/openjp2/ht_dec.c b/src/lib/openjp2/ht_dec.c
|
||||
index 1eb4d525f..e2f3afd6a 100644
|
||||
--- 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);
|
Reference in New Issue
Block a user