Skip to content

Commit 70ebb2e

Browse files
committed
video: simplify NEON macro in src/video/SDL_blit_[AN].c
1 parent ac3fb35 commit 70ebb2e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/video/SDL_blit_A.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ static void SDL_TARGETING("avx2") Blit8888to8888PixelAlphaSwizzleAVX2(SDL_BlitIn
12991299

13001300
#endif
13011301

1302-
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64))
1302+
#ifdef SDL_NEON_INTRINSICS
13031303

13041304
static void Blit8888to8888PixelAlphaSwizzleNEON(SDL_BlitInfo *info)
13051305
{
@@ -1504,7 +1504,7 @@ SDL_BlitFunc SDL_CalculateBlitA(SDL_Surface *surface)
15041504
return Blit8888to8888PixelAlphaSwizzleLSX;
15051505
}
15061506
#endif
1507-
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64))
1507+
#ifdef SDL_NEON_INTRINSICS
15081508
if (SDL_HasNEON()) {
15091509
return Blit8888to8888PixelAlphaSwizzleNEON;
15101510
}

src/video/SDL_blit_N.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,7 +2689,7 @@ static void SDL_TARGETING("avx2") Blit8888to8888PixelSwizzleAVX2(SDL_BlitInfo *i
26892689

26902690
#endif
26912691

2692-
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64))
2692+
#ifdef SDL_NEON_INTRINSICS
26932693

26942694
static void Blit8888to8888PixelSwizzleNEON(SDL_BlitInfo *info)
26952695
{
@@ -3117,7 +3117,7 @@ SDL_BlitFunc SDL_CalculateBlitN(SDL_Surface *surface)
31173117
return Blit8888to8888PixelSwizzleSSE41;
31183118
}
31193119
#endif
3120-
#if defined(SDL_NEON_INTRINSICS) && (__ARM_ARCH >= 8) && (defined(__aarch64__) || defined(_M_ARM64))
3120+
#ifdef SDL_NEON_INTRINSICS
31213121
if (SDL_HasNEON()) {
31223122
return Blit8888to8888PixelSwizzleNEON;
31233123
}

0 commit comments

Comments
 (0)