projects
/
platform
/
upstream
/
libatomic_ops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a424e
)
Do not include standard_ao_double_t.h if no double-CAS (gcc/arm)
author
Ivan Maidanski
<ivmai@mail.ru>
Thu, 4 Oct 2012 18:32:51 +0000
(22:32 +0400)
committer
Ivan Maidanski
<ivmai@mail.ru>
Thu, 4 Oct 2012 18:32:51 +0000
(22:32 +0400)
* src/atomic_ops/sysdeps/gcc/arm.h: Include standard_ao_double_t.h
only if AO_ARM_HAVE_LDREXD.
src/atomic_ops/sysdeps/gcc/arm.h
patch
|
blob
|
history
diff --git
a/src/atomic_ops/sysdeps/gcc/arm.h
b/src/atomic_ops/sysdeps/gcc/arm.h
index
8f364eb
..
a7a947c
100644
(file)
--- a/
src/atomic_ops/sysdeps/gcc/arm.h
+++ b/
src/atomic_ops/sysdeps/gcc/arm.h
@@
-82,8
+82,6
@@
#ifdef AO_ARM_HAVE_LDREX
-#include "../standard_ao_double_t.h"
-
AO_INLINE void
AO_nop_full(void)
{
@@
-315,6
+313,8
@@
AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val)
#define AO_HAVE_fetch_compare_and_swap
#ifdef AO_ARM_HAVE_LDREXD
+# include "../standard_ao_double_t.h"
+
AO_INLINE int
AO_compare_double_and_swap_double(volatile AO_double_t *addr,
AO_t old_val1, AO_t old_val2,