blit: Check MSVC's _M_ARM64 define in addition to __aarch64__.

Reference Issue #14519.

(cherry picked from commit 4e79d2ad64)
This commit is contained in:
Ryan C. Gordon authored and Sam Lantinga committed 2025-11-25 14:41:57 -08:00
1 parent 5f5a73a8f6
commit 98ed8b98b1
1 file changed
+2 -2
+2 -2
View File
@@ -1299,7 +1299,7 @@ static void SDL_TARGETING("avx2") Blit8888to8888PixelAlphaSwizzleAVX2(SDL_BlitIn
#endif #endif
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && defined(__aarch64__) #if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64))
static void Blit8888to8888PixelAlphaSwizzleNEON(SDL_BlitInfo *info) static void Blit8888to8888PixelAlphaSwizzleNEON(SDL_BlitInfo *info)
{ {
@@ -1504,7 +1504,7 @@ SDL_BlitFunc SDL_CalculateBlitA(SDL_Surface *surface)
return Blit8888to8888PixelAlphaSwizzleLSX; return Blit8888to8888PixelAlphaSwizzleLSX;
} }
#endif #endif
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && defined(__aarch64__) #if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64))
// To prevent "unused function" compiler warnings/errors // To prevent "unused function" compiler warnings/errors
(void)Blit8888to8888PixelAlpha; (void)Blit8888to8888PixelAlpha;
(void)Blit8888to8888PixelAlphaSwizzle; (void)Blit8888to8888PixelAlphaSwizzle;