]> granicus.if.org Git - libatomic_ops/commitdiff
Define AO_int_X operations for ARM and avr32
authorIvan Maidanski <ivmai@mail.ru>
Sat, 6 Oct 2012 17:32:40 +0000 (21:32 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 6 Oct 2012 17:32:40 +0000 (21:32 +0400)
* src/atomic_ops/sysdeps/armcc/arm_v6.h (AO_T_IS_INT): Define macro
(signifying that AO_t is in fact int and, thus, defining AO_int_...
primitives).
* src/atomic_ops/sysdeps/gcc/arm.h b/src/atomic_ops/sysdeps/gcc/arm.h
(AO_T_IS_INT): Likewise.
* src/atomic_ops/sysdeps/gcc/avr32.h (AO_T_IS_INT): Likewise.
* src/atomic_ops/sysdeps/msftc/arm.h (AO_T_IS_INT): Likewise.
* src/atomic_ops/sysdeps/gcc/arm.h (AO_T_IS_INT): Add FIXME
(AO_T_IS_INT should be defined conditionally on adding 64-bit ABI
support).
* src/atomic_ops/sysdeps/gcc/mips.h (AO_T_IS_INT): Likewise.

src/atomic_ops/sysdeps/armcc/arm_v6.h
src/atomic_ops/sysdeps/gcc/arm.h
src/atomic_ops/sysdeps/gcc/avr32.h
src/atomic_ops/sysdeps/gcc/mips.h
src/atomic_ops/sysdeps/msftc/arm.h

index 57b8476abb76ab94a2bce49d7055ee26409f9ee4..2ce31b168efc2e384267bcccdce07b249a65af55 100644 (file)
@@ -254,3 +254,5 @@ AO_compare_double_and_swap_double(volatile AO_double_t *addr,
 #define AO_HAVE_compare_double_and_swap_double
 
 #endif /* __TARGET_ARCH_ARM >= 6 */
+
+#define AO_T_IS_INT
index b994bbb731d7c92a3d7115f2f2dcde767b9ff3ce..324f4a57b93c66efca67e91b705b0bcef0d95741 100644 (file)
@@ -388,3 +388,6 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val)
   }
 # define AO_HAVE_test_and_set_full
 #endif /* !AO_HAVE_test_and_set[_full] && AO_ARM_HAVE_SWP */
+
+/* FIXME: 32-bit ABI is assumed.    */
+#define AO_T_IS_INT
index 89baa7bafe78289c1d53ff4ec4d03f8bb3f5deea..b0c52c70ec818c5b8e1d6a072de6b1030a867b37 100644 (file)
@@ -67,3 +67,5 @@ AO_compare_and_swap_full(volatile AO_t *addr, AO_t old, AO_t new_val)
 #define AO_HAVE_compare_and_swap_full
 
 /* TODO: implement AO_fetch_compare_and_swap.   */
+
+#define AO_T_IS_INT
index 63f9e48607082d8e86b71ef5d90d48b52c687812..9373c1d2019e11f80d0050b35b53b581d0575dc2 100644 (file)
@@ -167,4 +167,5 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old, AO_t new_val)
 /* generated automatically (and AO_int_... primitives are       */
 /* defined properly after the first generalization pass).       */
 
+/* FIXME: 32-bit ABI is assumed.    */
 #define AO_T_IS_INT
index d254a3fc1f50b0fc1fbdeacd05cb6c045f61ed0f..68727cc32ea3174ea05c505627d3a527d65f1225 100644 (file)
@@ -87,3 +87,5 @@ AO_store_full(volatile AO_t *addr, AO_t value)
 /* AO_test_and_set_full() is emulated using CAS.                        */
 
 #endif /* _M_ARM < 6 */
+
+#define AO_T_IS_INT