Skip to content

Commit

Permalink
Fix MSVC compilation errors (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
toxieainc committed Mar 17, 2023
1 parent 66c9231 commit 7b92098
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sse2neon.h
Original file line number Diff line number Diff line change
Expand Up @@ -8001,7 +8001,7 @@ FORCE_INLINE int _sse2neon_sido_negative(int res, int lb, int imm8, int bound)
FORCE_INLINE int _sse2neon_clz(unsigned int x)
{
#if _MSC_VER
DWORD cnt = 0;
unsigned long cnt = 0;
if (_BitScanForward(&cnt, x))
return cnt;
return 32;
Expand All @@ -8013,7 +8013,7 @@ FORCE_INLINE int _sse2neon_clz(unsigned int x)
FORCE_INLINE int _sse2neon_ctz(unsigned int x)
{
#if _MSC_VER
DWORD cnt = 0;
unsigned long cnt = 0;
if (_BitScanReverse(&cnt, x))
return 31 - cnt;
return 32;
Expand All @@ -8026,7 +8026,7 @@ FORCE_INLINE int _sse2neon_ctzll(unsigned long long x)
{
#if _MSC_VER
unsigned long cnt;
#ifdef defined(SSE2NEON_HAS_BITSCAN64)
#if defined(SSE2NEON_HAS_BITSCAN64)
(defined(_M_AMD64) || defined(__x86_64__))
if((_BitScanForward64(&cnt, x))
return (int)(cnt);
Expand Down

0 comments on commit 7b92098

Please sign in to comment.