forked from len0rd/rockbox
libtremor: correct constraint for coldfire asm, swap can only be used on data registers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28604 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2142628a2d
commit
76027b5951
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ static inline ogg_uint32_t bitreverse(register ogg_uint32_t x)
|
||||||
|
|
||||||
#ifdef CPU_COLDFIRE
|
#ifdef CPU_COLDFIRE
|
||||||
ret = x;
|
ret = x;
|
||||||
asm ("swap %[r]" : [r] "+r" (ret)); /* swap halfwords */
|
asm ("swap %[r]" : [r] "+d" (ret)); /* swap halfwords */
|
||||||
#else
|
#else
|
||||||
ret = (x>>16) | (x<<16);
|
ret = (x>>16) | (x<<16);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue