src/video/SDL_yuv_sw.c
changeset 2197 2ff40f30af31
parent 2172 bef26cfc8f79
child 2781 5651642f4a78
     1.1 --- a/src/video/SDL_yuv_sw.c	Sat Jul 14 07:05:19 2007 +0000
     1.2 +++ b/src/video/SDL_yuv_sw.c	Sat Jul 14 07:28:45 2007 +0000
     1.3 @@ -117,7 +117,7 @@
     1.4  
     1.5  /* The colorspace conversion functions */
     1.6  
     1.7 -#if (__GNUC__ > 2) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
     1.8 +#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES
     1.9  extern void Color565DitherYV12MMX1X(int *colortab, Uint32 * rgb_2_pix,
    1.10                                      unsigned char *lum, unsigned char *cr,
    1.11                                      unsigned char *cb, unsigned char *out,
    1.12 @@ -978,7 +978,7 @@
    1.13      case SDL_PIXELFORMAT_YV12:
    1.14      case SDL_PIXELFORMAT_IYUV:
    1.15          if (SDL_BYTESPERPIXEL(target_format) == 2) {
    1.16 -#if (__GNUC__ > 2) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
    1.17 +#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES
    1.18              /* inline assembly functions */
    1.19              if (SDL_HasMMX() && (Rmask == 0xF800) &&
    1.20                  (Gmask == 0x07E0) && (Bmask == 0x001F)
    1.21 @@ -999,7 +999,7 @@
    1.22              swdata->Display2X = Color24DitherYV12Mod2X;
    1.23          }
    1.24          if (SDL_BYTESPERPIXEL(target_format) == 4) {
    1.25 -#if (__GNUC__ > 2) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
    1.26 +#if (__GNUC__ > 2) && defined(__i386__) && __OPTIMIZE__ && SDL_ASSEMBLY_ROUTINES
    1.27              /* inline assembly functions */
    1.28              if (SDL_HasMMX() && (Rmask == 0x00FF0000) &&
    1.29                  (Gmask == 0x0000FF00) &&