Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
f07f47b1
Commit
f07f47b1
authored
Oct 14, 2019
by
Michele Dionisio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid to use ceil function
ceil function is usually in math library that can be avoided as dependency
parent
f370cc00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
decoder_allocators.cpp
src/decoder_allocators.cpp
+1
-5
No files found.
src/decoder_allocators.cpp
View file @
f07f47b1
...
...
@@ -30,8 +30,6 @@
#include "precompiled.hpp"
#include "decoder_allocators.hpp"
#include <cmath>
#include "msg.hpp"
zmq
::
shared_message_memory_allocator
::
shared_message_memory_allocator
(
...
...
@@ -40,9 +38,7 @@ zmq::shared_message_memory_allocator::shared_message_memory_allocator (
_buf_size
(
0
),
_max_size
(
bufsize_
),
_msg_content
(
NULL
),
_max_counters
(
static_cast
<
size_t
>
(
std
::
ceil
(
static_cast
<
double
>
(
_max_size
)
/
static_cast
<
double
>
(
msg_t
::
max_vsm_size
))))
_max_counters
((
_max_size
+
msg_t
::
max_vsm_size
-
1
)
/
msg_t
::
max_vsm_size
)
{
}
...
...
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