Skip to content

Commit ecce2b0

Browse files
committed
format
1 parent 18a07fe commit ecce2b0

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

src_c/simd_fill.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ surface_fill_blend_max_sse2(SDL_Surface *surface, SDL_Rect *rect,
105105
Uint32 color);
106106
int
107107
surface_fill_blend_rgba_max_sse2(SDL_Surface *surface, SDL_Rect *rect,
108-
Uint32 color);
108+
Uint32 color);

src_c/surface_fill.c

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,8 @@ surface_fill_blend(SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
891891
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
892892
if (surface->format->BytesPerPixel == 4) {
893893
if (_pg_has_avx2()) {
894-
result = surface_fill_blend_sub_avx2(surface, rect, color);
895-
break;
894+
result = surface_fill_blend_sub_avx2(surface, rect, color);
895+
break;
896896
}
897897
#if PG_ENABLE_SSE_NEON
898898
if (_pg_HasSSE_NEON()) {
@@ -911,8 +911,9 @@ surface_fill_blend(SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
911911
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
912912
if (surface->format->BytesPerPixel == 4) {
913913
if (_pg_has_avx2()) {
914-
result = surface_fill_blend_mult_avx2(surface, rect, color);
915-
break;
914+
result =
915+
surface_fill_blend_mult_avx2(surface, rect, color);
916+
break;
916917
}
917918
#if PG_ENABLE_SSE_NEON
918919
if (_pg_HasSSE_NEON()) {
@@ -932,8 +933,8 @@ surface_fill_blend(SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
932933
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
933934
if (surface->format->BytesPerPixel == 4) {
934935
if (_pg_has_avx2()) {
935-
result = surface_fill_blend_min_avx2(surface, rect, color);
936-
break;
936+
result = surface_fill_blend_min_avx2(surface, rect, color);
937+
break;
937938
}
938939
#if PG_ENABLE_SSE_NEON
939940
if (_pg_HasSSE_NEON()) {
@@ -952,8 +953,8 @@ surface_fill_blend(SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
952953
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
953954
if (surface->format->BytesPerPixel == 4) {
954955
if (_pg_has_avx2()) {
955-
result = surface_fill_blend_max_avx2(surface, rect, color);
956-
break;
956+
result = surface_fill_blend_max_avx2(surface, rect, color);
957+
break;
957958
}
958959
#if PG_ENABLE_SSE_NEON
959960
if (_pg_HasSSE_NEON()) {
@@ -995,8 +996,9 @@ surface_fill_blend(SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
995996
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
996997
if (surface->format->BytesPerPixel == 4) {
997998
if (_pg_has_avx2()) {
998-
result = surface_fill_blend_rgba_sub_avx2(surface, rect, color);
999-
break;
999+
result =
1000+
surface_fill_blend_rgba_sub_avx2(surface, rect, color);
1001+
break;
10001002
}
10011003
#if PG_ENABLE_SSE_NEON
10021004
if (_pg_HasSSE_NEON()) {
@@ -1016,7 +1018,8 @@ surface_fill_blend(SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
10161018
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
10171019
if (surface->format->BytesPerPixel == 4) {
10181020
if (_pg_has_avx2()) {
1019-
result = surface_fill_blend_rgba_mult_avx2(surface, rect, color);
1021+
result = surface_fill_blend_rgba_mult_avx2(surface, rect,
1022+
color);
10201023
break;
10211024
}
10221025
#if PG_ENABLE_SSE_NEON
@@ -1037,7 +1040,8 @@ surface_fill_blend(SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
10371040
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
10381041
if (surface->format->BytesPerPixel == 4) {
10391042
if (_pg_has_avx2()) {
1040-
result = surface_fill_blend_rgba_min_avx2(surface, rect, color);
1043+
result =
1044+
surface_fill_blend_rgba_min_avx2(surface, rect, color);
10411045
break;
10421046
}
10431047
#if PG_ENABLE_SSE_NEON
@@ -1058,7 +1062,8 @@ surface_fill_blend(SDL_Surface *surface, SDL_Rect *rect, Uint32 color,
10581062
#if SDL_BYTEORDER == SDL_LIL_ENDIAN
10591063
if (surface->format->BytesPerPixel == 4) {
10601064
if (_pg_has_avx2()) {
1061-
result = surface_fill_blend_rgba_max_avx2(surface, rect, color);
1065+
result =
1066+
surface_fill_blend_rgba_max_avx2(surface, rect, color);
10621067
break;
10631068
}
10641069
#if PG_ENABLE_SSE_NEON

0 commit comments

Comments
 (0)