diff options
author | jhb <jhb@FreeBSD.org> | 2005-07-27 19:59:21 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-07-27 19:59:21 +0000 |
commit | 75a402d1cc655b66a1c7919d67bab6e0f584ea0f (patch) | |
tree | d55d92a14fb3d66151f51c7ac3588459677585bd /sys/arm | |
parent | 44060e7f1309db0879535f1047e6dd73d15346b1 (diff) | |
download | FreeBSD-src-75a402d1cc655b66a1c7919d67bab6e0f584ea0f.zip FreeBSD-src-75a402d1cc655b66a1c7919d67bab6e0f584ea0f.tar.gz |
Use a + constraint modifier for a register arg in __bswap16_var().
Reviewed by: cognet
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/include/endian.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arm/include/endian.h b/sys/arm/include/endian.h index 16a3b66..c99eaf7 100644 --- a/sys/arm/include/endian.h +++ b/sys/arm/include/endian.h @@ -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); } |