diff --git a/include/libtorrent/receive_buffer.hpp b/include/libtorrent/receive_buffer.hpp index 4aeac94bd..a909c75c2 100644 --- a/include/libtorrent/receive_buffer.hpp +++ b/include/libtorrent/receive_buffer.hpp @@ -40,11 +40,6 @@ POSSIBILITY OF SUCH DAMAGE. namespace libtorrent { -inline int round_up8(int v) -{ - return ((v & 7) == 0) ? v : v + (8 - (v & 7)); -} - struct receive_buffer { friend struct crypto_receive_buffer; diff --git a/src/receive_buffer.cpp b/src/receive_buffer.cpp index 28584bc76..4d286d2e0 100644 --- a/src/receive_buffer.cpp +++ b/src/receive_buffer.cpp @@ -34,6 +34,11 @@ POSSIBILITY OF SUCH DAMAGE. namespace libtorrent { +int round_up8(int v) +{ + return ((v & 7) == 0) ? v : v + (8 - (v & 7)); +} + int receive_buffer::max_receive() { int max = packet_bytes_remaining();