Skip to content

Commit 09eb633

Browse files
committed
Don't use x86/64 features in emscripten
1 parent 02552ad commit 09eb633

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Common/CommonFuncs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
#if defined(_MSC_VER)
7373
#include <cstdlib>
74-
#elif (PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64))
74+
#elif (PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)) && !defined(__EMSCRIPTEN__)
7575
#include <x86intrin.h>
7676
#endif
7777

@@ -90,7 +90,7 @@
9090
inline u32 __rotl(u32 x, int shift) {
9191
#if defined(_MSC_VER)
9292
return _rotl(x, shift);
93-
#elif (PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64))
93+
#elif (PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)) && !defined(__EMSCRIPTEN__)
9494
return __rold(x, shift);
9595
#else
9696
shift &= 31;
@@ -113,7 +113,7 @@ inline u64 __rotl64(u64 x, unsigned int shift){
113113
inline u32 __rotr(u32 x, int shift) {
114114
#if defined(_MSC_VER)
115115
return _rotr(x, shift);
116-
#elif (PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64))
116+
#elif (PPSSPP_ARCH(X86) || PPSSPP_ARCH(AMD64)) && !defined(__EMSCRIPTEN__)
117117
return __rord(x, shift);
118118
#else
119119
shift &= 31;

0 commit comments

Comments
 (0)