There's a bug in the VC7 optimizer relating to the duff loop optimization
authorSam Lantinga <slouken@libsdl.org>
Mon, 02 Dec 2002 02:40:58 +0000
changeset 553417f8709e648
parent 552 639d58d32471
child 554 38b1a98aeb11
There's a bug in the VC7 optimizer relating to the duff loop optimization
src/video/SDL_blit.h
     1.1 --- a/src/video/SDL_blit.h	Mon Dec 02 02:35:58 2002 +0000
     1.2 +++ b/src/video/SDL_blit.h	Mon Dec 02 02:40:58 2002 +0000
     1.3 @@ -375,7 +375,11 @@
     1.4  } while(0)
     1.5  
     1.6  /* This is a very useful loop for optimizing blitters */
     1.7 +#if defined(_MSC_VER) && (_MSC_VER == 1300)
     1.8 +/* There's a bug in the Visual C++ 7 optimizer when compiling this code */
     1.9 +#else
    1.10  #define USE_DUFFS_LOOP
    1.11 +#endif
    1.12  #ifdef USE_DUFFS_LOOP
    1.13  
    1.14  /* 8-times unrolled loop */