Skip to content

Commit

Permalink
There's a bug in the VC7 optimizer relating to the duff loop optimiza…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
slouken committed Dec 2, 2002
1 parent dca396b commit 2c3710c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/SDL_blit.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 2c3710c

Please sign in to comment.