summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86_64/include/bits/byteswap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86_64/include/bits/byteswap.h b/src/arch/x86_64/include/bits/byteswap.h
index 113b32787..2e472d98a 100644
--- a/src/arch/x86_64/include/bits/byteswap.h
+++ b/src/arch/x86_64/include/bits/byteswap.h
@@ -19,7 +19,7 @@ __bswap_variable_16 ( uint16_t x ) {
static inline __attribute__ (( always_inline )) void
__bswap_16s ( uint16_t *x ) {
- __asm__ ( "rorw $8, %0" : "=g" ( *x ) : "0" ( *x ) );
+ __asm__ ( "rorw $8, %0" : "+m" ( *x ) );
}
static inline __attribute__ (( always_inline, const )) uint32_t