src/video/SDL_blit_N.c
changeset 1053 f596fa4f17a6
parent 1047 ffaaf7ecf685
child 1139 d0ae4dff7208
equal deleted inserted replaced
1052:68f607298ca9 1053:f596fa4f17a6
   683 #else
   683 #else
   684 /* Feature 1 is has-MMX */
   684 /* Feature 1 is has-MMX */
   685 #define GetBlitFeatures() ((Uint32)(SDL_HasMMX() ? 1 : 0))
   685 #define GetBlitFeatures() ((Uint32)(SDL_HasMMX() ? 1 : 0))
   686 #endif
   686 #endif
   687 
   687 
   688 #ifdef USE_ASMBLIT
       
   689 
       
   690 /* Heheheh, we coerce Hermes into using SDL blit information */
       
   691 #define X86_ASSEMBLER
       
   692 #define HermesConverterInterface	SDL_BlitInfo
       
   693 #define HermesClearInterface		void
       
   694 #define STACKCALL
       
   695 
       
   696 #include "HeadMMX.h"
       
   697 #include "HeadX86.h"
       
   698 
       
   699 #else
       
   700 
       
   701 /* This is now endian dependent */
   688 /* This is now endian dependent */
   702 #if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
   689 #if ( SDL_BYTEORDER == SDL_LIL_ENDIAN )
   703 #define HI	1
   690 #define HI	1
   704 #define LO	0
   691 #define LO	0
   705 #else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */
   692 #else /* ( SDL_BYTEORDER == SDL_BIG_ENDIAN ) */
   706 #define HI	0
   693 #define HI	0
   707 #define LO	1
   694 #define LO	1
   708 #endif
   695 #endif
       
   696 
       
   697 #ifdef USE_ASMBLIT
       
   698 
       
   699 /* Heheheh, we coerce Hermes into using SDL blit information */
       
   700 #define X86_ASSEMBLER
       
   701 #define HermesConverterInterface	SDL_BlitInfo
       
   702 #define HermesClearInterface		void
       
   703 #define STACKCALL
       
   704 
       
   705 #include "HeadMMX.h"
       
   706 #include "HeadX86.h"
       
   707 
       
   708 #else
   709 
   709 
   710 /* Special optimized blit for RGB 8-8-8 --> RGB 3-3-2 */
   710 /* Special optimized blit for RGB 8-8-8 --> RGB 3-3-2 */
   711 #define RGB888_RGB332(dst, src) { \
   711 #define RGB888_RGB332(dst, src) { \
   712 	dst = (((src)&0x00E00000)>>16)| \
   712 	dst = (((src)&0x00E00000)>>16)| \
   713 	      (((src)&0x0000E000)>>11)| \
   713 	      (((src)&0x0000E000)>>11)| \