CLEANUP: atomic: use the __atomic variant of BTS/BTR on modern compilers
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Apr 2021 12:04:22 +0000 (14:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Apr 2021 16:18:37 +0000 (18:18 +0200)
commitfa68d2641bda7ffd01b66e253a049fdee94e9ccd
tree26f1173404a7dd4908679df64e1b283bbd423013
parent4781b1521a5c7da72ca673cf5885dda9f33bef3d
CLEANUP: atomic: use the __atomic variant of BTS/BTR on modern compilers

Probably due to the result of an old copy-paste, HA_ATOMIC_BTS/BTR were
still implemented using the __sync_*  builtins instead of the more
modern __atomic_* which allow to specify the memory model. Let's update
this to use the newer there and also implement the relaxed variants
(which are not used for now).
include/haproxy/atomic.h