projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force build failure on unknown architectures
[urcu.git]
/
urcu-qsbr-static.h
diff --git
a/urcu-qsbr-static.h
b/urcu-qsbr-static.h
index 8822e050bac8aaa00a8c210dfb122193f2e90280..86f0fc507449451d70f276571d3c6aa1be61d98a 100644
(file)
--- a/
urcu-qsbr-static.h
+++ b/
urcu-qsbr-static.h
@@
-155,23
+155,13
@@
static inline void wake_up_gp(void)
}
}
}
}
-#if (BITS_PER_LONG < 64)
static inline int rcu_gp_ongoing(unsigned long *ctr)
{
unsigned long v;
v = LOAD_SHARED(*ctr);
static inline int rcu_gp_ongoing(unsigned long *ctr)
{
unsigned long v;
v = LOAD_SHARED(*ctr);
- return v && (
(v ^ rcu_gp_ctr) & RCU_GP_CTR
);
+ return v && (
v != rcu_gp_ctr
);
}
}
-#else /* !(BITS_PER_LONG < 64) */
-static inline int rcu_gp_ongoing(unsigned long *ctr)
-{
- unsigned long v;
-
- v = LOAD_SHARED(*ctr);
- return v && (v - rcu_gp_ctr > ULONG_MAX / 2);
-}
-#endif /* !(BITS_PER_LONG < 64) */
static inline void _rcu_read_lock(void)
{
static inline void _rcu_read_lock(void)
{
This page took
0.023541 seconds
and
4
git commands to generate.