Don't enable SSE4 under Emscripten (#8213, #8169, #4933)

Amend 326dc95f9
This commit is contained in:
slowriot
2024-12-09 12:14:43 +01:00
committed by ocornut
parent 3f3c62a3c9
commit 2671f68f7f
2 changed files with 9 additions and 5 deletions
+4
View File
@@ -66,6 +66,10 @@ Index of this file:
#include <nmmintrin.h>
#endif
#endif
// Emscripten has partial SSE 4.2 support where _mm_crc32_u32 is not available. See https://emscripten.org/docs/porting/simd.html#id11 and #8213
#if defined(IMGUI_ENABLE_SSE4_2) || !defined(__EMSCRIPTEN__)
#define IMGUI_ENABLE_SSE4_2_CRC
#endif
// Visual Studio warnings
#ifdef _MSC_VER