src/video/SDL_blit_N.c
branchSDL-1.3
changeset 1659 14717b52abc0
parent 1544 ab1e4c41ab71
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
equal deleted inserted replaced
1658:e49147870aac 1659:14717b52abc0
    27 #include "SDL_blit.h"
    27 #include "SDL_blit.h"
    28 
    28 
    29 /* Functions to blit from N-bit surfaces to other surfaces */
    29 /* Functions to blit from N-bit surfaces to other surfaces */
    30 
    30 
    31 #if SDL_ALTIVEC_BLITTERS
    31 #if SDL_ALTIVEC_BLITTERS
       
    32 #if __MWERKS__
       
    33 #pragma altivec_model on
       
    34 #endif
    32 #ifdef HAVE_ALTIVEC_H
    35 #ifdef HAVE_ALTIVEC_H
    33 #include <altivec.h>
    36 #include <altivec.h>
    34 #endif
    37 #endif
    35 #define assert(X)
    38 #define assert(X)
    36 #ifdef __MACOSX__
    39 #ifdef __MACOSX__
   828             );
   831             );
   829         }
   832         }
   830     }
   833     }
   831     return features;
   834     return features;
   832 }
   835 }
       
   836 #if __MWERKS__
       
   837 #pragma altivec_model off
       
   838 #endif
   833 #else
   839 #else
   834 /* Feature 1 is has-MMX */
   840 /* Feature 1 is has-MMX */
   835 #define GetBlitFeatures() ((Uint32)(SDL_HasMMX() ? 1 : 0))
   841 #define GetBlitFeatures() ((Uint32)(SDL_HasMMX() ? 1 : 0))
   836 #endif
   842 #endif
   837 
   843