Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
timeout.c
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
timeout.c
Commits
17eb0f2a
Commit
17eb0f2a
authored
Jan 04, 2014
by
william
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typing bugs in fp conversion macros
parent
55878c07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
timeout.h
timeout.h
+2
-2
No files found.
timeout.h
View file @
17eb0f2a
...
...
@@ -203,10 +203,10 @@ TIMEOUT_PUBLIC bool timeouts_check(struct timeouts *, FILE *);
#include <math.h>
/* ceil(3) */
#define timeouts_f2i(T, f) \
(ceil((f) * timeouts_hz((T))))
/* prefer late expiration over early */
(
(timeout_t)
ceil((f) * timeouts_hz((T))))
/* prefer late expiration over early */
#define timeouts_i2f(T, i) \
((i) / timeouts_hz((T)))
((
double)(
i) / timeouts_hz((T)))
#define timeouts_addf(T, to, timeout) \
timeouts_add((T), (to), timeouts_f2i((T), (timeout)))
...
...
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