2
0
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:
Michael Brown
2012-03-04 21:46:45 +00:00
parent 732bea2f88
commit 3b689e531d

View File

@ -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