projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aec51c
)
[DCCP]: Make `before' relation unambiguous
author
Gerrit Renker
<gerrit@erg.abdn.ac.uk>
Tue, 20 Mar 2007 16:00:26 +0000
(13:00 -0300)
committer
David S. Miller
<davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:26:44 +0000
(22:26 -0700)
Problem:
net/dccp/dccp.h
patch
|
blob
|
blame
|
history
diff --git
a/net/dccp/dccp.h
b/net/dccp/dccp.h
index afb313ff216e107e5e1fca38f3dd67382a65b86c..1615986a8d9241971aacd1d8c8908174de8adc48 100644
(file)
--- a/
net/dccp/dccp.h
+++ b/
net/dccp/dccp.h
@@
-124,14
+124,11
@@
static inline s64 dccp_delta_seqno(const u64 seqno1, const u64 seqno2)
/* is seq1 < seq2 ? */
static inline int before48(const u64 seq1, const u64 seq2)
{
- return (s64)((seq
1 << 16) - (seq2 << 16)) <
0;
+ return (s64)((seq
2 << 16) - (seq1 << 16)) >
0;
}
/* is seq1 > seq2 ? */
-static inline int after48(const u64 seq1, const u64 seq2)
-{
- return (s64)((seq2 << 16) - (seq1 << 16)) < 0;
-}
+#define after48(seq1, seq2) before48(seq2, seq1)
/* is seq2 <= seq1 <= seq3 ? */
static inline int between48(const u64 seq1, const u64 seq2, const u64 seq3)