From 42c59d9257204019a7c0db37e23935e1605f0c65 Mon Sep 17 00:00:00 2001 From: rogerman Date: Wed, 6 Apr 2022 10:16:49 -0700 Subject: [PATCH] Minor correction related to commit e8328eda. - If this doesn't fix Linux builds (it probably won't), then I will partially revert commit e8328eda to make it work. --- desmume/src/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/types.h b/desmume/src/types.h index 01f9a8a81..0e18c39c2 100644 --- a/desmume/src/types.h +++ b/desmume/src/types.h @@ -295,7 +295,7 @@ typedef __m128i v128s32; // Note: Technically, the shift count of palignr can be any value of [0-255]. But practically speaking, the // shift count should be a value of [0-15]. If we assume that the value range will always be [0-15], we can // then substitute the palignr instruction with an SSE2 equivalent. - #define _mm_alignr_epi8(a, b, immShiftCount) _mm_or_si128(_mm_slli_si128(a, 16-(immShiftCount)), _mm_srli_si128(b, (immShiftCount))) + #define _mm_alignr_epi8(a, b, immShiftCount) _mm_or_si128(_mm_slli_si128((a), 16-(immShiftCount)), _mm_srli_si128((b), (immShiftCount))) #endif // ENABLE_SSSE3 #ifdef ENABLE_SSE4_1