This commit is contained in:
pionere 2023-02-13 14:02:14 +03:00 committed by GitHub
commit 343e04a8d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -534,22 +534,15 @@ extern SDL_BlitFunc SDL_CalculateBlitA(SDL_Surface *surface);
int n = width; \
if (n & 1) { \
pixel_copy_increment1; \
n -= 1; \
} \
if (n & 2) { \
n >>= 1; \
if (n & 1) { \
pixel_copy_increment2; \
n -= 2; \
} \
if (n & 4) { \
n >>= 1; \
while (n > 0) { \
pixel_copy_increment4; \
n -= 4; \
} \
if (n) { \
n /= 8; \
do { \
pixel_copy_increment4; \
pixel_copy_increment4; \
} while (--n > 0); \
n--; \
} \
}