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
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
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