Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
Ratas
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
Ratas
Commits
a052a585
Commit
a052a585
authored
Aug 01, 2016
by
Juho Snellman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on clang
- std::ceil() could be used in constant expression on gcc, but not in clang
parent
1ad6ef21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/timer-wheel.h
src/timer-wheel.h
+1
-2
No files found.
src/timer-wheel.h
View file @
a052a585
...
...
@@ -86,7 +86,6 @@
#define RATAS_TIMER_WHEEL_H
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <cstdint>
#include <cstdio>
...
...
@@ -282,7 +281,7 @@ private:
bool
process_current_slot
(
Tick
now
,
size_t
max_execute
,
int
level
);
static
const
int
WIDTH_BITS
=
8
;
static
const
int
NUM_LEVELS
=
std
::
ceil
(
64
/
WIDTH_BITS
)
;
static
const
int
NUM_LEVELS
=
(
64
+
WIDTH_BITS
-
1
)
/
WIDTH_BITS
;
static
const
int
MAX_LEVEL
=
NUM_LEVELS
-
1
;
static
const
int
NUM_SLOTS
=
1
<<
WIDTH_BITS
;
// A bitmask for looking at just the bits in the timestamp relevant to
...
...
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