Fixed inline assembly warning for PPC
input constraint with a matching output constraint of incompatible type
This commit is contained in:
parent
40c6294290
commit
41b2fc0189
1 changed files with 2 additions and 2 deletions
|
@ -91,10 +91,10 @@ SDL_Swap16(Uint16 x)
|
||||||
static __inline__ Uint16
|
static __inline__ Uint16
|
||||||
SDL_Swap16(Uint16 x)
|
SDL_Swap16(Uint16 x)
|
||||||
{
|
{
|
||||||
Uint16 result;
|
int result;
|
||||||
|
|
||||||
__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 (Uint16)result;
|
||||||
}
|
}
|
||||||
#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
|
#elif defined(__GNUC__) && (defined(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
|
||||||
static __inline__ Uint16
|
static __inline__ Uint16
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue