mirror of
https://github.com/xcat2/xNBA.git
synced 2025-06-17 20:00:21 +00:00
[x86_64] Use memory address constraint in __bswap_16s()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@ -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
Block a user