History

Use MSVC inline assembly only on (32-bit) X86

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.

Martin Storsjö committed 12 years ago

Commit 4a087811 parent 16ad8793 files · +4 −4Browse files

Showing the changes to codec/decoder/core/src/bit_stream.cpp (1 of 3 files). Show all

Unified · Split

codec/decoder/core/src/bit_stream.cpp+1−1
@@ -48,7 +48,7 @@ inline uint32_t EndianFix (uint32_t uiX) { · 47 unmodified lines
48}48}
49#else //WORDS_BIGENDIAN49#else //WORDS_BIGENDIAN
50 50
51#if defined(WIN32) && defined(_MSC_VER)51#if defined(_MSC_VER) && defined(_M_IX86)
52inline uint32_t EndianFix (uint32_t uiX) {52inline uint32_t EndianFix (uint32_t uiX) {
53 __asm {53 __asm {
54 mov eax, uiX54 mov eax, uiX

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t