Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d52de17b
Commit
d52de17b
authored
Mar 20, 2007
by
Gerrit Renker
Committed by
David S. Miller
Apr 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DCCP]: Make `before' relation unambiguous
Problem:
parent
0aec51c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
net/dccp/dccp.h
net/dccp/dccp.h
+2
-5
No files found.
net/dccp/dccp.h
View file @
d52de17b
...
@@ -124,14 +124,11 @@ static inline s64 dccp_delta_seqno(const u64 seqno1, const u64 seqno2)
...
@@ -124,14 +124,11 @@ static inline s64 dccp_delta_seqno(const u64 seqno1, const u64 seqno2)
/* is seq1 < seq2 ? */
/* is seq1 < seq2 ? */
static
inline
int
before48
(
const
u64
seq1
,
const
u64
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 ? */
/* is seq1 > seq2 ? */
static
inline
int
after48
(
const
u64
seq1
,
const
u64
seq2
)
#define after48(seq1, seq2) before48(seq2, seq1)
{
return
(
s64
)((
seq2
<<
16
)
-
(
seq1
<<
16
))
<
0
;
}
/* is seq2 <= seq1 <= seq3 ? */
/* is seq2 <= seq1 <= seq3 ? */
static
inline
int
between48
(
const
u64
seq1
,
const
u64
seq2
,
const
u64
seq3
)
static
inline
int
between48
(
const
u64
seq1
,
const
u64
seq2
,
const
u64
seq3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment