]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: compiler: move CPU capabilities definition from config.h and complete them
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 14:40:58 +0000 (15:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 15:32:57 +0000 (16:32 +0100)
commit0e2686762fa6b6fe51690cdca4273b799c6f2193
tree0b24811b00ea01739f63b57f01a233237a607529
parenta7ddab0c250a0618e14a0c86aa66bbcf2052b2dc
MINOR: compiler: move CPU capabilities definition from config.h and complete them

These ones are irrelevant to the config but rather to the platform, and
as such are better placed in compiler.h.

Here we take the opportunity for declaring a few extra capabilities:
 - HA_UNALIGNED         : CPU supports unaligned accesses
 - HA_UNALIGNED_LE      : CPU supports unaligned accesses in little endian
 - HA_UNALIGNED_FAST    : CPU supports fast unaligned accesses
 - HA_UNALIGNED_ATOMIC  : CPU supports unaligned accesses in atomics

This will help remove a number of #ifdefs with arch-specific statements.
include/common/compiler.h
include/common/config.h