mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
popcnt is not a windows ARM intrinsic.
This commit is contained in:
parent
c9a4775d49
commit
a5ba18c20e
2
3rdparty/openjpeg/openjp2/ht_dec.c
vendored
2
3rdparty/openjpeg/openjp2/ht_dec.c
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user