Use a + constraint modifier for a register arg in __bswap16_var().
Reviewed by: cognet
This commit is contained in:
parent
4eae015de1
commit
e11fe02dfb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user