From 8cd59562e94881d17bd98dbb155d3b5b6e07e52b Mon Sep 17 00:00:00 2001 From: Naveen Regulla Date: Fri, 13 Mar 2026 14:09:48 +0530 Subject: [PATCH] Add Windows ARM64/ARM64EC intrinsics support and fix build failures --- cyCore.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/cyCore.h b/cyCore.h index c661e77..83036ee 100644 --- a/cyCore.h +++ b/cyCore.h @@ -52,9 +52,18 @@ #include #include -#if !defined(CY_NO_INTRIN_H) && !defined(CY_NO_EMMINTRIN_H) && !defined(CY_NO_IMMINTRIN_H) -# include -#endif +#if !defined(CY_NO_INTRIN_H) + #if defined(_M_ARM64) || defined(_M_ARM64EC) + #include + #if !defined(CY_NO_ARM_NEON_H) + #include + #endif + #elif defined(_M_X64) || defined(_M_IX86) + #if !defined(CY_NO_IMMINTRIN_H) && !defined(CY_NO_EMMINTRIN_H) + #include + #endif + #endif +#endif // !defined(CY_NO_INTRIN_H) //------------------------------------------------------------------------------- namespace cy {