forked from len0rd/rockbox
Killed signed/unsigned inconsistency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7275 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6b749c5ab1
commit
a691db61a6
1 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ static inline unsigned short SWAB16(unsigned short value)
|
|||
result[ 7..0] = value[15..8];
|
||||
*/
|
||||
{
|
||||
short result;
|
||||
unsigned short result;
|
||||
asm volatile ("swap.b\t%1,%0" : "=r"(result) : "r"(value));
|
||||
return result;
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ static inline unsigned long SWAW32(unsigned long value)
|
|||
result[15.. 0] = value[31..16];
|
||||
*/
|
||||
{
|
||||
long result;
|
||||
unsigned long result;
|
||||
asm volatile ("swap.w\t%1,%0" : "=r"(result) : "r"(value));
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue