src/video/SDL_blit.h
changeset 2249 5a58b57b6724
parent 2247 93994f65c74c
child 2250 e1d228456537
     1.1 --- a/src/video/SDL_blit.h	Thu Aug 16 02:14:13 2007 +0000
     1.2 +++ b/src/video/SDL_blit.h	Thu Aug 16 05:56:24 2007 +0000
     1.3 @@ -24,6 +24,13 @@
     1.4  #ifndef _SDL_blit_h
     1.5  #define _SDL_blit_h
     1.6  
     1.7 +#ifdef __MMX__
     1.8 +#include <mmintrin.h>
     1.9 +#endif
    1.10 +#ifdef __SSE__
    1.11 +#include <xmmintrin.h>
    1.12 +#endif
    1.13 +
    1.14  #include "SDL_endian.h"
    1.15  
    1.16  /* The structure passed to the low level blit functions */
    1.17 @@ -92,6 +99,14 @@
    1.18   * Useful macros for blitting routines
    1.19   */
    1.20  
    1.21 +#if defined(__GNUC__)
    1.22 +#define DECLARE_ALIGNED(t,v,a)  t __attribute__((aligned(a))) v
    1.23 +#elif defined(_MSC_VER)
    1.24 +#define DECLARE_ALIGNED(t,v,a)  t __declspec(align(a)) v
    1.25 +#else
    1.26 +#define DECLARE_ALIGNED(t,v,a)  t v
    1.27 +#endif
    1.28 +
    1.29  #define FORMAT_EQUAL(A, B)						\
    1.30      ((A)->BitsPerPixel == (B)->BitsPerPixel				\
    1.31       && ((A)->Rmask == (B)->Rmask) && ((A)->Amask == (B)->Amask))