forked from len0rd/rockbox
SWAB32 is finally working
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@529 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
01ede91cbe
commit
18826d2c83
1 changed files with 4 additions and 1 deletions
|
@ -194,7 +194,10 @@ static inline long SWAB32(long value)
|
|||
result[ 7.. 0] = value[31..24];
|
||||
*/
|
||||
{
|
||||
return SWAB16(SWAW32(SWAB16(value)));
|
||||
asm volatile ("swap.b\t%0,%0\n"
|
||||
"swap.w\t%0,%0\n"
|
||||
"swap.b\t%0,%0\n" : "+r"(value));
|
||||
return value;
|
||||
}
|
||||
|
||||
/* Test And Set - UNTESTED */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue