From 3abdd7cdafd8bb5c41c1df79db25b2b7729d0294 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 6 Nov 2019 01:30:20 +0100 Subject: [PATCH] Remove LZ4 include from TracyProtocol.hpp. --- common/TracyProtocol.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp index f41ecb2e..5daa360e 100644 --- a/common/TracyProtocol.hpp +++ b/common/TracyProtocol.hpp @@ -4,18 +4,18 @@ #include #include -#include "../common/tracy_lz4.hpp" - namespace tracy { +constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; } + enum : uint32_t { ProtocolVersion = 22 }; enum : uint32_t { BroadcastVersion = 0 }; using lz4sz_t = uint32_t; enum { TargetFrameSize = 256 * 1024 }; -enum { LZ4Size = LZ4_COMPRESSBOUND( TargetFrameSize ) }; +enum { LZ4Size = Lz4CompressBound( TargetFrameSize ) }; static_assert( LZ4Size <= std::numeric_limits::max(), "LZ4Size greater than lz4sz_t" ); static_assert( TargetFrameSize * 2 >= 64 * 1024, "Not enough space for LZ4 stream buffer" );