Use a + constraint modifier for a register arg in __bswap16_var().

Reviewed by:	cognet
This commit is contained in:
John Baldwin 2005-07-27 19:59:21 +00:00
parent 4eae015de1
commit e11fe02dfb

View File

@ -100,11 +100,10 @@ static __inline __uint16_t
__bswap16_var(__uint16_t v)
{
__asm __volatile(
"mov %0, %1, ror #8\n"
"mov %0, %0, ror #8\n"
"orr %0, %0, %0, lsr #16\n"
"bic %0, %0, %0, lsl #16"
: "=r" (v)
: "0" (v));
: "+r" (v));
return (v);
}