diff include/SDL_endian.h @ 4374:124629b76853 SDL-1.2

Disable m68k assembly for Coldfire CPUs
author Patrice Mandin <patmandin@gmail.com>
date Fri, 06 Nov 2009 18:06:01 +0000
parents cd511a8560b7
children d660ca4f7b1f
line wrap: on
line diff
--- a/include/SDL_endian.h	Fri Nov 06 17:42:14 2009 +0000
+++ b/include/SDL_endian.h	Fri Nov 06 18:06:01 2009 +0000
@@ -86,7 +86,7 @@
 	__asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x));
 	return result;
 }
-#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__))
+#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
 static __inline__ Uint16 SDL_Swap16(Uint16 x)
 {
 	__asm__("rorw #8,%0" : "=d" (x) :  "0" (x) : "cc");
@@ -121,7 +121,7 @@
 	__asm__("rlwimi %0,%2,24,0,7"   : "=&r" (result) : "0" (result),    "r" (x));
 	return result;
 }
-#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__))
+#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
 static __inline__ Uint32 SDL_Swap32(Uint32 x)
 {
 	__asm__("rorw #8,%0\n\tswap %0\n\trorw #8,%0" : "=d" (x) :  "0" (x) : "cc");