From c030fa553ecdaf7dc53a3cec29097c936756aa5d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 3 Aug 2011 21:14:06 +0400 Subject: [PATCH] * generic_pthread.h (AO_compare_and_swap_full, AO_compare_double_and_swap_double_full, AO_compare_and_swap_double_full): fix code indentation. --- src/atomic_ops/sysdeps/generic_pthread.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/atomic_ops/sysdeps/generic_pthread.h b/src/atomic_ops/sysdeps/generic_pthread.h index 789218d..5178a68 100644 --- a/src/atomic_ops/sysdeps/generic_pthread.h +++ b/src/atomic_ops/sysdeps/generic_pthread.h @@ -200,8 +200,7 @@ AO_or_full(volatile AO_t *p, AO_t value) #define AO_HAVE_or_full AO_INLINE int -AO_compare_and_swap_full(volatile AO_t *addr, - AO_t old, AO_t new_val) +AO_compare_and_swap_full(volatile AO_t *addr, AO_t old, AO_t new_val) { pthread_mutex_lock(&AO_pt_lock); if (*addr == old) @@ -212,7 +211,7 @@ AO_compare_and_swap_full(volatile AO_t *addr, } else pthread_mutex_unlock(&AO_pt_lock); - return 0; + return 0; } #define AO_HAVE_compare_and_swap_full @@ -239,14 +238,13 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr, } else pthread_mutex_unlock(&AO_pt_lock); - return 0; + return 0; } #define AO_HAVE_compare_double_and_swap_double_full AO_INLINE int AO_compare_and_swap_double_full(volatile AO_double_t *addr, - AO_t old1, - AO_t new1, AO_t new2) + AO_t old1, AO_t new1, AO_t new2) { pthread_mutex_lock(&AO_pt_lock); if (addr -> AO_val1 == old1) @@ -258,7 +256,7 @@ AO_compare_and_swap_double_full(volatile AO_double_t *addr, } else pthread_mutex_unlock(&AO_pt_lock); - return 0; + return 0; } #define AO_HAVE_compare_and_swap_double_full -- 2.40.0