Headers: move arch_*.h to urcu/arch/*.h
[urcu.git] / urcu / uatomic_arch_arm.h
index b68c818c52ae99d1cbd263fba01fe5135ecf76b3..fee30409308ea35f386fe0f3ba3246384551b19c 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef _URCU_ARCH_UATOMIC_ARMV7L_H
-#define _URCU_ARCH_UATOMIC_ARMV7L_H
+#ifndef _URCU_ARCH_UATOMIC_ARM_H
+#define _URCU_ARCH_UATOMIC_ARM_H
 
 /* 
- * Atomics for ARMv7.  This approach is usable on kernels back to 2.6.15.
+ * Atomics for ARM.  This approach is usable on kernels back to 2.6.15.
  *
  * Copyright (c) 1991-1994 by Xerox Corporation.  All rights reserved.
  * Copyright (c) 1996-1999 by Silicon Graphics.  All rights reserved.
@@ -34,17 +34,10 @@ extern "C" {
 /* xchg */
 #define uatomic_xchg(addr, v) __sync_lock_test_and_set(addr, v)
 
-/* cmpxchg */
-#define uatomic_cmpxchg(addr, old, _new) \
-       __sync_val_compare_and_swap(addr, old, _new)
-
-/* uatomic_add_return */
-#define uatomic_add_return(addr, v) __sync_add_and_fetch(addr, v)
-
 #ifdef __cplusplus 
 }
 #endif
 
 #include <urcu/uatomic_generic.h>
 
-#endif /* _URCU_ARCH_UATOMIC_ARMV7L_H */
+#endif /* _URCU_ARCH_UATOMIC_ARM_H */
This page took 0.023391 seconds and 4 git commands to generate.