mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-08 18:29:01 +08:00
8da5d2b450
* update openjpeg * update openjpeg * add arm patch and license * reduce to version * update db * fix fastcgi to always use make * remove from baseline * openjpeg add tools feature * vdb * add supports statement. fastcgi uses stuff which only is allowed in desktop apps. * format manfiest * ver db Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
14 lines
524 B
Diff
14 lines
524 B
Diff
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);
|