Switch atomic release API from __sync to __atomic builtin. 30/19930/3
authorSirshak Das <sirshak.das@arm.com>
Tue, 28 May 2019 13:46:27 +0000 (08:46 -0500)
committerDamjan Marion <dmarion@me.com>
Wed, 5 Jun 2019 13:52:01 +0000 (13:52 +0000)
commit21aed5cc995148047e80a48f436d12bca7b0073a
treed443cff671bd121d1799a08b7dc4f210483052ee
parent3bb6540ab531f5474217f5f1f7cb7b8dce1d4e57
Switch atomic release API from __sync to __atomic builtin.

__sync_lock_release switched to __atomic_store for code consitency,
although both generate same instructions with current compilers.

Change-Id: I37d320509e43a4c2b8a49af6346dc4a43ca2f535
Signed-off-by: Sirshak Das <sirshak.das@arm.com>
Reviewed-by: Lijian Zhang <Lijian.Zhang@arm.com>
Reviewed-by: Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>
src/vppinfra/atomics.h