src/video/SDL_yuv_sw.c
changeset 2168 07f084fe97d0
parent 1965 a788656ca29a
child 2172 bef26cfc8f79
     1.1 --- a/src/video/SDL_yuv_sw.c	Wed Jul 11 04:47:25 2007 +0000
     1.2 +++ b/src/video/SDL_yuv_sw.c	Wed Jul 11 07:39:01 2007 +0000
     1.3 @@ -117,7 +117,7 @@
     1.4  
     1.5  /* The colorspace conversion functions */
     1.6  
     1.7 -#if 0                           /*defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES */
     1.8 +#if (__GNUC__ > 2) && defined(__i386__) && 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 0                           /*defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES */
    1.17 +#if (__GNUC__ > 2) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
    1.18              /* inline assembly functions */
    1.19              if (SDL_HasMMX() && (Rmask == 0xF800) &&
    1.20                  (Gmask == 0x07E0) && (Bmask == 0x001F) && (width & 15) == 0) {
    1.21 @@ -998,7 +998,7 @@
    1.22              swdata->Display2X = Color24DitherYV12Mod2X;
    1.23          }
    1.24          if (SDL_BYTESPERPIXEL(target_format) == 4) {
    1.25 -#if 0                           /*defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES */
    1.26 +#if (__GNUC__ > 2) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
    1.27              /* inline assembly functions */
    1.28              if (SDL_HasMMX() && (Rmask == 0x00FF0000) &&
    1.29                  (Gmask == 0x0000FF00) &&