Commit 33bfbef9 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Merged r5194:5195 from branches/SDL-1.2: coldfire cpu arch support.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404381
parent b85e22a7
...@@ -92,7 +92,7 @@ SDL_Swap16(Uint16 x) ...@@ -92,7 +92,7 @@ SDL_Swap16(Uint16 x)
__asm__("rlwimi %0,%2,8,16,23": "=&r"(result):"0"(x >> 8), "r"(x)); __asm__("rlwimi %0,%2,8,16,23": "=&r"(result):"0"(x >> 8), "r"(x));
return result; return result;
} }
#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) #elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
static __inline__ Uint16 static __inline__ Uint16
SDL_Swap16(Uint16 x) SDL_Swap16(Uint16 x)
{ {
...@@ -132,7 +132,7 @@ SDL_Swap32(Uint32 x) ...@@ -132,7 +132,7 @@ SDL_Swap32(Uint32 x)
__asm__("rlwimi %0,%2,24,0,7": "=&r"(result):"0"(result), "r"(x)); __asm__("rlwimi %0,%2,24,0,7": "=&r"(result):"0"(result), "r"(x));
return result; return result;
} }
#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) #elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
static __inline__ Uint32 static __inline__ Uint32
SDL_Swap32(Uint32 x) SDL_Swap32(Uint32 x)
{ {
......
...@@ -102,7 +102,7 @@ SDL_MixAudioFormat(Uint8 * dst, const Uint8 * src, SDL_AudioFormat format, ...@@ -102,7 +102,7 @@ SDL_MixAudioFormat(Uint8 * dst, const Uint8 * src, SDL_AudioFormat format,
case AUDIO_U8: case AUDIO_U8:
{ {
#if defined(__GNUC__) && defined(__M68000__) && defined(SDL_ASSEMBLY_ROUTINES) #if defined(__GNUC__) && defined(__M68000__) && !defined(__mcoldfire__) && defined(SDL_ASSEMBLY_ROUTINES)
SDL_MixAudio_m68k_U8((char *) dst, (char *) src, SDL_MixAudio_m68k_U8((char *) dst, (char *) src,
(unsigned long) len, (long) volume, (unsigned long) len, (long) volume,
(char *) mix8); (char *) mix8);
...@@ -135,7 +135,7 @@ SDL_MixAudioFormat(Uint8 * dst, const Uint8 * src, SDL_AudioFormat format, ...@@ -135,7 +135,7 @@ SDL_MixAudioFormat(Uint8 * dst, const Uint8 * src, SDL_AudioFormat format,
} else } else
#endif #endif
#endif #endif
#if defined(__GNUC__) && defined(__M68000__) && defined(SDL_ASSEMBLY_ROUTINES) #if defined(__GNUC__) && defined(__M68000__) && !defined(__mcoldfire__) && defined(SDL_ASSEMBLY_ROUTINES)
SDL_MixAudio_m68k_S8((char *) dst, (char *) src, SDL_MixAudio_m68k_S8((char *) dst, (char *) src,
(unsigned long) len, (long) volume); (unsigned long) len, (long) volume);
#else #else
...@@ -182,7 +182,7 @@ SDL_MixAudioFormat(Uint8 * dst, const Uint8 * src, SDL_AudioFormat format, ...@@ -182,7 +182,7 @@ SDL_MixAudioFormat(Uint8 * dst, const Uint8 * src, SDL_AudioFormat format,
} else } else
#endif #endif
#endif #endif
#if defined(__GNUC__) && defined(__M68000__) && defined(SDL_ASSEMBLY_ROUTINES) #if defined(__GNUC__) && defined(__M68000__) && !defined(__mcoldfire__) && defined(SDL_ASSEMBLY_ROUTINES)
SDL_MixAudio_m68k_S16LSB((short *) dst, (short *) src, SDL_MixAudio_m68k_S16LSB((short *) dst, (short *) src,
(unsigned long) len, (long) volume); (unsigned long) len, (long) volume);
#else #else
...@@ -216,7 +216,7 @@ SDL_MixAudioFormat(Uint8 * dst, const Uint8 * src, SDL_AudioFormat format, ...@@ -216,7 +216,7 @@ SDL_MixAudioFormat(Uint8 * dst, const Uint8 * src, SDL_AudioFormat format,
case AUDIO_S16MSB: case AUDIO_S16MSB:
{ {
#if defined(__GNUC__) && defined(__M68000__) && defined(SDL_ASSEMBLY_ROUTINES) #if defined(__GNUC__) && defined(__M68000__) && !defined(__mcoldfire__) && defined(SDL_ASSEMBLY_ROUTINES)
SDL_MixAudio_m68k_S16MSB((short *) dst, (short *) src, SDL_MixAudio_m68k_S16MSB((short *) dst, (short *) src,
(unsigned long) len, (long) volume); (unsigned long) len, (long) volume);
#else #else
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
Patrice Mandin Patrice Mandin
*/ */
#if defined(__M68000__) && defined(__GNUC__) #if defined(__M68000__) && !defined(__mcoldfire__) && defined(__GNUC__)
void void
SDL_MixAudio_m68k_U8(char *dst, char *src, long len, long volume, char *mix8) SDL_MixAudio_m68k_U8(char *dst, char *src, long len, long volume, char *mix8)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment