1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Wrap lz4 in tracy namespace, etc.

This commit is contained in:
Bartosz Taudul
2020-11-16 18:13:19 +01:00
parent bae4c5f8df
commit 278b58728c
4 changed files with 41 additions and 44 deletions
+7 -2
View File
@@ -50,7 +50,7 @@
/*=== Dependency ===*/
#define LZ4_HC_STATIC_LINKING_ONLY
#include "lz4hc.h"
#include "tracy_lz4hc.hpp"
/*=== Common definitions ===*/
@@ -63,7 +63,7 @@
#define LZ4_COMMONDEFS_ONLY
#ifndef LZ4_SRC_INCLUDED
#include "lz4.c" /* LZ4_count, constants, mem */
#include "tracy_lz4.cpp" /* LZ4_count, constants, mem */
#endif
@@ -85,6 +85,9 @@ typedef enum { noDictCtx, usingDictCtxHc } dictCtx_directive;
/* Make fields passed to, and updated by LZ4HC_encodeSequence explicit */
#define UPDATABLE(ip, op, anchor) &ip, &op, &anchor
namespace tracy
{
static U32 LZ4HC_hashPtr(const void* ptr) { return HASH_FUNCTION(LZ4_read32(ptr)); }
@@ -1613,3 +1616,5 @@ _return_label:
#endif
return retval;
}
}