new module 'simple-atomic'

2021-02-14 Thread Bruno Haible
Most lock-free algorithms use the compare-and-swap primitive in one form or another. In order to be able to implement such algorithms, here is a module that implements compare-and-swap for 32-bit words and pointer-sized words. It's far from a complete , just the bare essentials. Support for compil

Re: Fix distinction of 32-bit/64-bit mode with xlc 13.1.3 on AIX

2021-02-14 Thread Jeffrey Walton
Hi Bruno, On Sun, Feb 14, 2021 at 9:50 PM Bruno Haible wrote: > > Starting with xlc version 13, this compiler defines the preprocessor macro > _ARCH_PPC64 also in 32-bit builds. See: > > $ xlc -qversion > IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72) > Version: 12.01.. > $ echo > empty

Fix distinction of 32-bit/64-bit mode with xlc 13.1.3 on AIX

2021-02-14 Thread Bruno Haible
Starting with xlc version 13, this compiler defines the preprocessor macro _ARCH_PPC64 also in 32-bit builds. See: $ xlc -qversion IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72) Version: 12.01.. $ echo > empty.c ; xlc -qshowmacros=pre -E empty.c | grep ARCH_PPC #define _ARCH_PPC 1 $ xlc