Avoid using SSE intrinsic on ARM64/ARM64EC targets. (#9209, #5943, #4091)

This commit is contained in:
Naveen Regulla
2026-01-31 07:45:47 +05:30
committed by ocornut
parent 9f2b3bcf7a
commit eaa32bb787
2 changed files with 3 additions and 1 deletions

View File

@@ -201,6 +201,8 @@ Other Changes:
flags of last submitted item. (#9127)
- Log/Capture: fixed erroneously injecting extra carriage returns in output
buffer when ItemSpacing.y > FramePadding.y + 1.
- Misc: fixed build on ARM64/ARM64EC targets trying to use SSE/immintrin.h.
(#9209, #5943, #4091) [@navvyswethgraphics]
- Images:
- Added style.ImageRounding, ImGuiStyleVar_ImageRounding to configure
rounding of Image() widgets. (#2942, #845)

View File

@@ -60,7 +60,7 @@ Index of this file:
#include <limits.h> // INT_MIN, INT_MAX
// Enable SSE intrinsics if available
#if (defined __SSE__ || defined __x86_64__ || defined _M_X64 || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))) && !defined(IMGUI_DISABLE_SSE)
#if (defined __SSE__ || defined __x86_64__ || defined _M_X64 || (defined(_M_IX86_FP) && (_M_IX86_FP >= 1))) && !defined(IMGUI_DISABLE_SSE) && !defined(_M_ARM64) && !defined(_M_ARM64EC)
#define IMGUI_ENABLE_SSE
#include <immintrin.h>
#if (defined __AVX__ || defined __SSE4_2__)