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:
Willy Tarreau 2020-09-10 09:31:50 +02:00
parent f6afda6539
commit d966f1497c
1 changed files with 1 additions and 1 deletions

View File

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