]> git.kaiwu.me - haproxy.git/commit
MINOR: tools: add a new pointer hash function that also takes an argument
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Mar 2026 18:14:06 +0000 (19:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:37 +0000 (18:06 +0100)
commit3b4275b0724479717af9efcf254604d21b3ef766
tree1c290849de57aebb64c954dd496aaec0d2d5ffc2
parent825e5611ba7e1b504cea66207336d4e6c2d599f2
MINOR: tools: add a new pointer hash function that also takes an argument

The purpose here is to combine two pointers and a long argument instead
of having the caller perform the mixing. Also it's cleaner and more
efficient this was as the arg is mixed after the multiplications, and
modern processors are efficient at multiplying then adding.
include/haproxy/tools.h