From 2c3710c52bc42b148d11d4381a453bff3921313a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 2 Dec 2002 02:40:58 +0000 Subject: [PATCH] There's a bug in the VC7 optimizer relating to the duff loop optimization --- src/video/SDL_blit.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/SDL_blit.h b/src/video/SDL_blit.h index 605496f7f..7fde5d36a 100644 --- a/src/video/SDL_blit.h +++ b/src/video/SDL_blit.h @@ -375,7 +375,11 @@ do { \ } 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 */