]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: improvements to the alignment macros
authorMaxime Henrion <mhenrion@haproxy.com>
Tue, 9 Dec 2025 15:51:33 +0000 (10:51 -0500)
committerOlivier Houchard <cognet@ci0.org>
Tue, 9 Dec 2025 16:05:52 +0000 (17:05 +0100)
commit74719dc4577e8e723200e7a1c39da9ae522c0654
treefe005586aa361d5b1f84ad9e4d90ce43267036da
parent420b42df1c6404956d1858e3c999e8d9288061a8
CLEANUP: improvements to the alignment macros

- It is now possible to use the THREAD_ALIGN and THREAD_ALIGNED macros
  without a parameter. In this case, we automatically align on the cache
  line size.
- The cache line size is set to 64 by default to match the current code,
  but it can be overridden on the command line.
- This required moving the DEFVAL/DEFNULL/DEFZERO macros to compiler.h
  instead of tools-t.h, to avoid namespace pollution if we included
  tools-t.h from compiler.h.
include/haproxy/compiler.h
include/haproxy/tools-t.h