projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46b42b6
)
Fix windows arm builds
1423/head
author
Alexander Neumann
<30894796+Neumann-A@users.noreply.github.com>
Mon, 16 May 2022 21:10:26 +0000
(23:10 +0200)
committer
GitHub
<noreply@github.com>
Mon, 16 May 2022 21:10:26 +0000
(23:10 +0200)
src/lib/openjp2/ht_dec.c
patch
|
blob
|
history
diff --git
a/src/lib/openjp2/ht_dec.c
b/src/lib/openjp2/ht_dec.c
index 1eb4d525f1154eb1df201d3a9555591fb101a47a..e2f3afd6a3afa1bcbde535d46fe04abc3f797a7b 100644
(file)
--- 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)
{
-#if
def 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);