1
0
Fork 0
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:
Linus Nielsen Feltzing 2002-05-09 23:00:14 +00:00
parent 01ede91cbe
commit 18826d2c83

View file

@ -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 */