[x86_64] Use memory address constraint in __bswap_16s()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
732bea2f88
commit
3b689e531d
|
@ -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
|
||||
|
|
Reference in New Issue