Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
1989baa3
Commit
1989baa3
authored
Aug 25, 2007
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement seqno_plus.
parent
85a65036
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
util.c
util.c
+6
-0
util.h
util.h
+2
-0
No files found.
util.c
View file @
1989baa3
...
...
@@ -56,6 +56,12 @@ seqno_minus(unsigned short s1, unsigned short s2)
return
((
s1
-
s2
)
&
0xFFFF
);
}
unsigned
short
seqno_plus
(
unsigned
short
s
,
int
plus
)
{
return
((
s
+
plus
)
&
0xFFFF
);
}
void
timeval_minus
(
struct
timeval
*
d
,
const
struct
timeval
*
s1
,
const
struct
timeval
*
s2
)
...
...
util.h
View file @
1989baa3
...
...
@@ -24,6 +24,8 @@ int seqno_compare(unsigned short s1, unsigned short s2)
ATTRIBUTE
((
const
));
int
seqno_minus
(
unsigned
short
s1
,
unsigned
short
s2
)
ATTRIBUTE
((
const
));
unsigned
short
seqno_plus
(
unsigned
short
s
,
int
plus
)
ATTRIBUTE
((
const
));
void
timeval_minus
(
struct
timeval
*
d
,
const
struct
timeval
*
s1
,
const
struct
timeval
*
s2
);
int
timeval_minus_msec
(
const
struct
timeval
*
s1
,
const
struct
timeval
*
s2
)
...
...
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