projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Install urcu/map/*.h into system
[urcu.git]
/
urcu
/
uatomic_arch_arm.h
diff --git
a/urcu/uatomic_arch_arm.h
b/urcu/uatomic_arch_arm.h
index b68c818c52ae99d1cbd263fba01fe5135ecf76b3..fee30409308ea35f386fe0f3ba3246384551b19c 100644
(file)
--- a/
urcu/uatomic_arch_arm.h
+++ b/
urcu/uatomic_arch_arm.h
@@
-1,8
+1,8
@@
-#ifndef _URCU_ARCH_UATOMIC_ARM
V7L
_H
-#define _URCU_ARCH_UATOMIC_ARM
V7L
_H
+#ifndef _URCU_ARCH_UATOMIC_ARM_H
+#define _URCU_ARCH_UATOMIC_ARM_H
/*
/*
- * Atomics for ARM
v7
. 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.
*
* 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)
/* 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>
#ifdef __cplusplus
}
#endif
#include <urcu/uatomic_generic.h>
-#endif /* _URCU_ARCH_UATOMIC_ARM
V7L
_H */
+#endif /* _URCU_ARCH_UATOMIC_ARM_H */
This page took
0.023154 seconds
and
4
git commands to generate.