Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
0aec51c8
Commit
0aec51c8
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 dccp_delta_seqno return signed numbers
Problem:
parent
6b811d43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
net/dccp/dccp.h
net/dccp/dccp.h
+5
-2
No files found.
net/dccp/dccp.h
View file @
0aec51c8
...
@@ -113,9 +113,12 @@ static inline void dccp_inc_seqno(u64 *seqno)
...
@@ -113,9 +113,12 @@ static inline void dccp_inc_seqno(u64 *seqno)
*
seqno
=
ADD48
(
*
seqno
,
1
);
*
seqno
=
ADD48
(
*
seqno
,
1
);
}
}
static
inline
u64
dccp_delta_seqno
(
u64
seqno1
,
u64
seqno2
)
/* signed mod-2^48 distance: pos. if seqno1 < seqno2, neg. if seqno1 > seqno2 */
static
inline
s64
dccp_delta_seqno
(
const
u64
seqno1
,
const
u64
seqno2
)
{
{
return
((
seqno2
<<
16
)
-
(
seqno1
<<
16
))
>>
16
;
u64
delta
=
SUB48
(
seqno2
,
seqno1
);
return
TO_SIGNED48
(
delta
);
}
}
/* is seq1 < seq2 ? */
/* is seq1 < seq2 ? */
...
...
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