# HG changeset patch # User Sam Lantinga # Date 1038796858 0 # Node ID 417f8709e6480342ecd0b1d0f091d13f02a28139 # Parent 639d58d324714d93d776105d4d8f93483f5b7b91 There's a bug in the VC7 optimizer relating to the duff loop optimization diff -r 639d58d32471 -r 417f8709e648 src/video/SDL_blit.h --- a/src/video/SDL_blit.h Mon Dec 02 02:35:58 2002 +0000 +++ b/src/video/SDL_blit.h Mon Dec 02 02:40:58 2002 +0000 @@ -375,7 +375,11 @@ } while(0) /* This is a very useful loop for optimizing blitters */ +#if defined(_MSC_VER) && (_MSC_VER == 1300) +/* There's a bug in the Visual C++ 7 optimizer when compiling this code */ +#else #define USE_DUFFS_LOOP +#endif #ifdef USE_DUFFS_LOOP /* 8-times unrolled loop */