diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2011-11-03 18:43:52 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-11-03 18:43:52 +0400 |
commit | a041e0c1a00043d8f19daf5076f7a55b987a750b (patch) | |
tree | 2148e0a13262dc3486081be4da616a47720e6f68 /src/atomic_ops/generalize-small.template | |
parent | ac010f614aaa9d80d3674ad497d1c289d2a4cb7c (diff) | |
download | libatomic_ops-a041e0c1a00043d8f19daf5076f7a55b987a750b.tar.gz |
Fix generalized AO_<type>_fetch_and_add() return type
* src/atomic_ops/generalize-small.template
(AO_XSIZE_fetch_and_add_full, AO_XSIZE_fetch_and_add_acquire,
AO_XSIZE_fetch_and_add_release): Change return type from AO_t to
XCTYPE.
* src/atomic_ops/generalize-small.h: Regenerate.
Diffstat (limited to 'src/atomic_ops/generalize-small.template')
-rw-r--r-- | src/atomic_ops/generalize-small.template | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/atomic_ops/generalize-small.template b/src/atomic_ops/generalize-small.template index 1200159..517a8a7 100644 --- a/src/atomic_ops/generalize-small.template +++ b/src/atomic_ops/generalize-small.template @@ -157,7 +157,7 @@ /* XSIZE_fetch_and_add */ #if defined(AO_HAVE_XSIZE_compare_and_swap_full) \ && !defined(AO_HAVE_XSIZE_fetch_and_add_full) - AO_INLINE AO_t + AO_INLINE XCTYPE AO_XSIZE_fetch_and_add_full(volatile unsigned XCTYPE *addr, unsigned XCTYPE incr) { @@ -174,7 +174,7 @@ #if defined(AO_HAVE_XSIZE_compare_and_swap_acquire) \ && !defined(AO_HAVE_XSIZE_fetch_and_add_acquire) - AO_INLINE AO_t + AO_INLINE XCTYPE AO_XSIZE_fetch_and_add_acquire(volatile unsigned XCTYPE *addr, unsigned XCTYPE incr) { @@ -191,7 +191,7 @@ #if defined(AO_HAVE_XSIZE_compare_and_swap_release) \ && !defined(AO_HAVE_XSIZE_fetch_and_add_release) - AO_INLINE AO_t + AO_INLINE XCTYPE AO_XSIZE_fetch_and_add_release(volatile unsigned XCTYPE *addr, unsigned XCTYPE incr) { |