diff src/video/SDL_blit.h @ 553:417f8709e648

There's a bug in the VC7 optimizer relating to the duff loop optimization
author Sam Lantinga <slouken@libsdl.org>
date Mon, 02 Dec 2002 02:40:58 +0000
parents 917cc5c56176
children 5bb080d35049
line wrap: on
line diff
--- 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 */