src/video/SDL_yuv_mmx.c
changeset 1413 40edc79b0926
parent 1407 0c6941483cc6
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4045 f420bba13676
equal deleted inserted replaced
1412:a8181c4040b8 1413:40edc79b0926
    19     Sam Lantinga
    19     Sam Lantinga
    20     slouken@libsdl.org
    20     slouken@libsdl.org
    21 */
    21 */
    22 #include "SDL_config.h"
    22 #include "SDL_config.h"
    23 
    23 
       
    24 #if 0 /* FIXME: This code needs to be rewritten to reference the static data using relocatable addresses (e.g. http://www.gentoo.org/proj/en/hardened/pic-fix-guide.xml or http://nasm.sourceforge.net/doc/html/nasmdoc8.html#section-8.2) This code currently breaks on systems with readonly text segments (hardened Linux / Intel Mac) */
    24 #if defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
    25 #if defined(__GNUC__) && defined(__i386__) && SDL_ASSEMBLY_ROUTINES
    25 
    26 
    26 #include "SDL_stdinc.h"
    27 #include "SDL_stdinc.h"
    27 
    28 
    28 #define ASM_ARRAY(x) x[] __asm__("_" #x) __attribute__((used))
    29 #define ASM_ARRAY(x) x[] __asm__("_" #x) __attribute__((used))
   404          :"m" (cr), "r"(cb),"r"(lum),
   405          :"m" (cr), "r"(cb),"r"(lum),
   405 	 "r"(row1),"r"(cols),"r"(row2),"m"(x),"m"(y),"m"(mod));
   406 	 "r"(row1),"r"(cols),"r"(row2),"m"(x),"m"(y),"m"(mod));
   406 }
   407 }
   407 
   408 
   408 #endif /* GCC i386 inline assembly */
   409 #endif /* GCC i386 inline assembly */
       
   410 #endif /* 0 */