mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
should check defined(_M_X64) not defined(_M_X86) when building with MSVC.
_M_X86 is only defined under MSVC 32Bit _M_X64 is only defined under MSVC 64Bit
This commit is contained in:
parent
a610550e2c
commit
42d704ad5e
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ FORCE_INLINE_TEMPLATE size_t BIT_getMiddleBits(BitContainerType bitContainer, U3
|
|||
* such cpus old (pre-Haswell, 2013) and their performance is not of that
|
||||
* importance.
|
||||
*/
|
||||
#if defined(__x86_64__) || defined(_M_X86)
|
||||
#if defined(__x86_64__) || defined(_M_X64)
|
||||
return (bitContainer >> (start & regMask)) & ((((U64)1) << nbBits) - 1);
|
||||
#else
|
||||
return (bitContainer >> (start & regMask)) & BIT_mask[nbBits];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue