projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename all arch primitives with prefix caa_
[userspace-rcu.git]
/
urcu
/
uatomic_arch_x86.h
diff --git
a/urcu/uatomic_arch_x86.h
b/urcu/uatomic_arch_x86.h
index e358be3673552dd9919ca6579e2c83071410157a..4e09afd7195aaa835a1478df76a7e9b0e508ff16 100644
(file)
--- a/
urcu/uatomic_arch_x86.h
+++ b/
urcu/uatomic_arch_x86.h
@@
-23,22
+23,13
@@
#include <urcu/compiler.h>
#include <urcu/system.h>
#include <urcu/compiler.h>
#include <urcu/system.h>
+#define UATOMIC_HAS_ATOMIC_BYTE
+#define UATOMIC_HAS_ATOMIC_SHORT
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef __SIZEOF_LONG__
-#if defined(__x86_64__) || defined(__amd64__)
-#define __SIZEOF_LONG__ 8
-#else
-#define __SIZEOF_LONG__ 4
-#endif
-#endif
-
-#ifndef BITS_PER_LONG
-#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
-#endif
-
/*
* Derived from AO_compare_and_swap() and AO_test_and_set_full().
*/
/*
* Derived from AO_compare_and_swap() and AO_test_and_set_full().
*/
@@
-48,7
+39,7
@@
struct __uatomic_dummy {
};
#define __hp(x) ((struct __uatomic_dummy *)(x))
};
#define __hp(x) ((struct __uatomic_dummy *)(x))
-#define _uatomic_set(addr, v) STORE_SHARED(*(addr), (v))
+#define _uatomic_set(addr, v)
CAA_
STORE_SHARED(*(addr), (v))
/* cmpxchg */
/* cmpxchg */
This page took
0.023523 seconds
and
4
git commands to generate.