]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: include: move integer manipulation functions from standard.h to intops.h
authorWilly Tarreau <w@1wt.eu>
Mon, 1 Jun 2020 09:48:35 +0000 (11:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:56 +0000 (10:18 +0200)
commitaea4635c38e0d76421116e3895b1be105d1871e2
treec60114da32846e4dc8c1f6c618fd38844de6068d
parent92b4f1372e54964283c51a1bde079e03dd927890
REORG: include: move integer manipulation functions from standard.h to intops.h

There are quite a number of integer manipulation functions defined in
standard.h, which is one of the reasons why standard.h is included from
many places and participates to the dependencies loop.

Let's just have a new file, intops.h to place all these operations.
These are a few bitops, 32/64 bit mul/div/rotate, integer parsing and
encoding (including varints), the full avalanche hash function, and
the my_htonll/my_ntohll functions.

For now no new C file was created for these yet.
include/common/standard.h
include/haproxy/intops.h [new file with mode: 0644]