From c04e720f9f3088ef784bfb575ed56702471e1a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 5 Dec 2017 23:29:06 +0100 Subject: [PATCH] Hide mask_sse4_1 completely on non-SSE builds --- src/openrct2/drawing/Sprite.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/openrct2/drawing/Sprite.cpp b/src/openrct2/drawing/Sprite.cpp index b155f71afa..b5d1be9576 100644 --- a/src/openrct2/drawing/Sprite.cpp +++ b/src/openrct2/drawing/Sprite.cpp @@ -181,10 +181,10 @@ static void mask_scalar(sint32 width, sint32 height, const uint8 * RESTRICT mask } } +#ifdef __SSE4_1__ static void mask_sse4_1(sint32 width, sint32 height, const uint8 * RESTRICT maskSrc, const uint8 * RESTRICT colourSrc, uint8 * RESTRICT dst, sint32 maskWrap, sint32 colourWrap, sint32 dstWrap) { -#ifdef __SSE4_1__ const __m128i zero128 = {}; for (sint32 yy = 0; yy < height; yy++) { @@ -213,10 +213,8 @@ static void mask_sse4_1(sint32 width, sint32 height, const uint8 * RESTRICT mask _mm_storeu_si128((__m128i *)(dst + dstStep), blended1); _mm_storeu_si128((__m128i *)(dst + 16 + dstStep), blended2); } -#else - openrct2_assert(false, "This build does not support SSE4.1, but ended up calling it"); -#endif // __SSE4_1__ } +#endif // __SSE4_1__ extern "C" {