]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: make my_htonll() more efficient on x86_64
authorWilly Tarreau <w@1wt.eu>
Wed, 20 Sep 2017 06:18:49 +0000 (08:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Sep 2017 09:27:31 +0000 (11:27 +0200)
commit36eb3a3ac83793748e9e5b644a848e6fa23c84cb
treef58b96be38e8518aa9ecb2626e6a91d8a4aa5d50
parent2f1cacb1aaf0369cb39e14147f022fa6c321cb15
MINOR: tools: make my_htonll() more efficient on x86_64

The current construct was made when developing on a 32-bit machine.
Having a simple bswap operation replaced with 2 bswap, 2 shift and
2 or is quite of a waste of precious cycles... Let's provide a trivial
asm-based implementation for x86_64.
include/common/standard.h