1
0
Fork 0
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:
Nils Wallménius 2010-11-15 16:02:17 +00:00
parent 2142628a2d
commit 76027b5951

View file

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