changeset 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 639d58d32471
children 38b1a98aeb11
files src/video/SDL_blit.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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 */