Currently this used the _MSC_VER && !WIN64 to enable the inline assembly, which still tried to use this code on windows on arm. Using _MSC_VER && _M_IX86 is enough since _M_IX86 is defined only when targeting 32 bit x86, not for x64.
Showing the changes to codec/decoder/core/src/bit_stream.cpp (1 of 3 files). Show all
Unified · Split
| @@ -48,7 +48,7 @@ inline uint32_t EndianFix (uint32_t uiX) { · 47 unmodified lines | |||
| 48 | } | 48 | } |
| 49 | #else //WORDS_BIGENDIAN | 49 | #else //WORDS_BIGENDIAN |
| 50 | 50 | ||
| 51 | #if defined(WIN32) && defined(_MSC_VER) | 51 | #if defined(_MSC_VER) && defined(_M_IX86) |
| 52 | inline uint32_t EndianFix (uint32_t uiX) { | 52 | inline uint32_t EndianFix (uint32_t uiX) { |
| 53 | __asm { | 53 | __asm { |
| 54 | mov eax, uiX | 54 | mov eax, uiX |