src/video/SDL_blit.h
changeset 91 e85e03f195b4
parent 0 74212992fb08
child 163 2dc7252dc53e
     1.1 --- a/src/video/SDL_blit.h	Sat Jul 07 08:08:42 2001 +0000
     1.2 +++ b/src/video/SDL_blit.h	Sat Jul 07 20:20:17 2001 +0000
     1.3 @@ -384,7 +384,7 @@
     1.4  /* 8-times unrolled loop */
     1.5  #define DUFFS_LOOP8(pixel_copy_increment, width)			\
     1.6  { int n = (width+7)/8;							\
     1.7 -	switch (width % 8) {						\
     1.8 +	switch (width & 7) {						\
     1.9  	case 0: do {	pixel_copy_increment;				\
    1.10  	case 7:		pixel_copy_increment;				\
    1.11  	case 6:		pixel_copy_increment;				\
    1.12 @@ -400,7 +400,7 @@
    1.13  /* 4-times unrolled loop */
    1.14  #define DUFFS_LOOP4(pixel_copy_increment, width)			\
    1.15  { int n = (width+3)/4;							\
    1.16 -	switch (width % 4) {						\
    1.17 +	switch (width & 3) {						\
    1.18  	case 0: do {	pixel_copy_increment;				\
    1.19  	case 3:		pixel_copy_increment;				\
    1.20  	case 2:		pixel_copy_increment;				\