Rename release ordering from _rls_ to _rel_ since it matches better with _acq_rel_, which is going to be used for C11 memory_order_acq_rel order.
Signed-off-by: Petri Savolainen <petri.savolai...@nokia.com> --- include/odp/api/atomic.h | 8 ++++---- platform/linux-generic/include/odp/atomic.h | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/odp/api/atomic.h b/include/odp/api/atomic.h index cd62f98..b0a46ba 100644 --- a/include/odp/api/atomic.h +++ b/include/odp/api/atomic.h @@ -33,7 +33,7 @@ extern "C" { * * <b> Operations with other than relaxed memory ordering </b> * - * <b> An operation with RELEASE </b> memory ordering (odp_atomic_xxx_rls_xxx()) + * <b> An operation with RELEASE </b> memory ordering (odp_atomic_xxx_rel_xxx()) * ensures that other threads loading the same atomic variable with ACQUIRE * memory ordering see all stores (from the calling thread) that happened before * this releasing store. @@ -363,7 +363,7 @@ int odp_atomic_cas_acq_u32(odp_atomic_u32_t *atom, uint32_t *old_val, * @param atom Pointer to atomic variable * @param val Value to store in the variable */ -void odp_atomic_store_rls_u32(odp_atomic_u32_t *atom, uint32_t val); +void odp_atomic_store_rel_u32(odp_atomic_u32_t *atom, uint32_t val); /** * Add to atomic uint32 variable using RELEASE memory ordering @@ -374,7 +374,7 @@ void odp_atomic_store_rls_u32(odp_atomic_u32_t *atom, uint32_t val); * @param atom Pointer to atomic variable * @param val Value to be added to the variable */ -void odp_atomic_add_rls_u32(odp_atomic_u32_t *atom, uint32_t val); +void odp_atomic_add_rel_u32(odp_atomic_u32_t *atom, uint32_t val); /** * Subtract from atomic uint32 variable using RELEASE memory ordering @@ -385,7 +385,7 @@ void odp_atomic_add_rls_u32(odp_atomic_u32_t *atom, uint32_t val); * @param atom Pointer to atomic variable * @param val Value to be subtracted from the variable */ -void odp_atomic_sub_rls_u32(odp_atomic_u32_t *atom, uint32_t val); +void odp_atomic_sub_rel_u32(odp_atomic_u32_t *atom, uint32_t val); /** * Atomic operations diff --git a/platform/linux-generic/include/odp/atomic.h b/platform/linux-generic/include/odp/atomic.h index 005a0cd..9dffa09 100644 --- a/platform/linux-generic/include/odp/atomic.h +++ b/platform/linux-generic/include/odp/atomic.h @@ -272,19 +272,19 @@ static inline int odp_atomic_cas_acq_u32(odp_atomic_u32_t *atom, __ATOMIC_RELAXED); } -static inline void odp_atomic_store_rls_u32(odp_atomic_u32_t *atom, +static inline void odp_atomic_store_rel_u32(odp_atomic_u32_t *atom, uint32_t val) { __atomic_store_n(&atom->v, val, __ATOMIC_RELEASE); } -static inline void odp_atomic_add_rls_u32(odp_atomic_u32_t *atom, +static inline void odp_atomic_add_rel_u32(odp_atomic_u32_t *atom, uint32_t val) { (void)__atomic_fetch_add(&atom->v, val, __ATOMIC_RELEASE); } -static inline void odp_atomic_sub_rls_u32(odp_atomic_u32_t *atom, +static inline void odp_atomic_sub_rel_u32(odp_atomic_u32_t *atom, uint32_t val) { (void)__atomic_fetch_sub(&atom->v, val, __ATOMIC_RELEASE); -- 2.6.3 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp