projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6afda6
)
BUILD: intops: on x86_64, the bswap instruction is called bswapq
author
Willy Tarreau
<w@1wt.eu>
Thu, 10 Sep 2020 07:31:50 +0000
(09:31 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 10 Sep 2020 07:31:50 +0000
(09:31 +0200)
Building with tcc fails on "bswap" which in fact ought to be called
"bswapq". Let's rename it as gas doesn't care.
include/haproxy/intops.h
patch
|
blob
|
history
diff --git
a/include/haproxy/intops.h
b/include/haproxy/intops.h
index
960c6cb
..
e5d795e
100644
(file)
--- a/
include/haproxy/intops.h
+++ b/
include/haproxy/intops.h
@@
-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 {