Misc: use native crc32 instructions on SEE 4.2 targets. (#8169, #4933)

This commit is contained in:
Teselka
2024-11-27 12:23:27 +01:00
committed by ocornut
parent e6dd8f626a
commit 326dc95f9c
3 changed files with 23 additions and 0 deletions
+4
View File
@@ -61,6 +61,10 @@ Index of this file:
#if (defined __SSE__ || defined __x86_64__ || defined _M_X64 || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))) && !defined(IMGUI_DISABLE_SSE)
#define IMGUI_ENABLE_SSE
#include <immintrin.h>
#if (defined __AVX__ || defined __SSE4_2__)
#define IMGUI_ENABLE_SSE4_2
#include <nmmintrin.h>
#endif
#endif
// Visual Studio warnings