eal/x86: add 128-bit atomic compare exchange
authorGage Eads <gage.eads@intel.com>
Wed, 3 Apr 2019 19:44:56 +0000 (14:44 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Apr 2019 19:59:46 +0000 (21:59 +0200)
commit640c5f09ef2cb23d300748e220ea5d8fffdbfdd0
tree91fc9cf6a8c7b43f7ebe727c80d058c9a19bb28e
parent3f9aab961ed3841aec27bf9ee0571298546c34db
eal/x86: add 128-bit atomic compare exchange

This operation can be used for non-blocking algorithms, such as a
non-blocking stack or ring.

It is available only for x86_64.

Signed-off-by: Gage Eads <gage.eads@intel.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
lib/librte_eal/common/include/arch/x86/rte_atomic_64.h
lib/librte_eal/common/include/generic/rte_atomic.h