Commit f07f47b1 authored by Michele Dionisio's avatar Michele Dionisio

avoid to use ceil function

ceil function is usually in math library that can be avoided as dependency
parent f370cc00
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
#include "precompiled.hpp" #include "precompiled.hpp"
#include "decoder_allocators.hpp" #include "decoder_allocators.hpp"
#include <cmath>
#include "msg.hpp" #include "msg.hpp"
zmq::shared_message_memory_allocator::shared_message_memory_allocator ( zmq::shared_message_memory_allocator::shared_message_memory_allocator (
...@@ -40,9 +38,7 @@ 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), _buf_size (0),
_max_size (bufsize_), _max_size (bufsize_),
_msg_content (NULL), _msg_content (NULL),
_max_counters (static_cast<size_t> ( _max_counters ((_max_size + msg_t::max_vsm_size - 1) / msg_t::max_vsm_size)
std::ceil (static_cast<double> (_max_size)
/ static_cast<double> (msg_t::max_vsm_size))))
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment