mirror of
https://github.com/yawut/SDL.git
synced 2026-10-26 00:19:46 -05:00
Fixed inline assembly warning for PPC
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -86,10 +86,10 @@ static __inline__ Uint16 SDL_Swap16(Uint16 x)
|
||||
#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
|
||||
static __inline__ Uint16 SDL_Swap16(Uint16 x)
|
||||
{
|
||||
Uint16 result;
|
||||
int result;
|
||||
|
||||
__asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x));
|
||||
return result;
|
||||
return (Uint16)result;
|
||||
}
|
||||
#elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__))
|
||||
static __inline__ Uint16 SDL_Swap16(Uint16 x)
|
||||
|
||||
Reference in New Issue
Block a user