BUILD: intops: on x86_64, the bswap instruction is called bswapq
Building with tcc fails on "bswap" which in fact ought to be called "bswapq". Let's rename it as gas doesn't care.
This commit is contained in:
parent
f6afda6539
commit
d966f1497c
|
@ -220,7 +220,7 @@ static inline unsigned long nbits(int bits)
|
|||
static inline unsigned long long my_htonll(unsigned long long a)
|
||||
{
|
||||
#if defined(__x86_64__)
|
||||
__asm__ volatile("bswap %0" : "=r"(a) : "0"(a));
|
||||
__asm__ volatile("bswapq %0" : "=r"(a) : "0"(a));
|
||||
return a;
|
||||
#else
|
||||
union {
|
||||
|
|
Loading…
Reference in New Issue