Mercurial > sdl-ios-xcode
diff src/video/SDL_blit_A.c @ 3035:ff602fdfdedc
Removed Rafal Bursig's MMX RLE code, at his request.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 13 Jan 2009 07:20:55 +0000 |
parents | 8cc00819c8d6 |
children | 90aec03bf9fd |
line wrap: on
line diff
--- a/src/video/SDL_blit_A.c Tue Jan 13 03:53:22 2009 +0000 +++ b/src/video/SDL_blit_A.c Tue Jan 13 07:20:55 2009 +0000 @@ -1266,8 +1266,7 @@ while (height--) { /* *INDENT-OFF* */ - DUFFS_LOOP_DOUBLE2({ - /* One Pixel Blend */ + DUFFS_LOOP4({ s = *srcp; d = *dstp; s1 = s & 0xff00ff; @@ -1280,35 +1279,6 @@ *dstp = d1 | d | 0xff000000; ++srcp; ++dstp; - },{ - /* Two Pixels Blend */ - s = *srcp; - d = *dstp; - s1 = s & 0xff00ff; - d1 = d & 0xff00ff; - d1 += (s1 - d1) * alpha >> 8; - d1 &= 0xff00ff; - - s = ((s & 0xff00) >> 8) | - ((srcp[1] & 0xff00) << 8); - d = ((d & 0xff00) >> 8) | - ((dstp[1] & 0xff00) << 8); - d += (s - d) * alpha >> 8; - d &= 0x00ff00ff; - - *dstp++ = d1 | ((d << 8) & 0xff00) | 0xff000000; - ++srcp; - - s1 = *srcp; - d1 = *dstp; - s1 &= 0xff00ff; - d1 &= 0xff00ff; - d1 += (s1 - d1) * alpha >> 8; - d1 &= 0xff00ff; - - *dstp = d1 | ((d >> 8) & 0xff00) | 0xff000000; - ++srcp; - ++dstp; }, width); /* *INDENT-ON* */ srcp += srcskip; @@ -1588,7 +1558,7 @@ while (height--) { /* *INDENT-OFF* */ - DUFFS_LOOP_QUATRO2( + DUFFS_LOOP_124( { s = *srcp++; d = *dstp; @@ -1726,7 +1696,7 @@ while (height--) { /* *INDENT-OFF* */ - DUFFS_LOOP_QUATRO2( + DUFFS_LOOP_124( { s = *srcp++; d = *dstp;