36 #ifndef TRACY_LZ4_H_2983827168210
37 #define TRACY_LZ4_H_2983827168210
83 #ifndef LZ4LIB_VISIBILITY
84 # if defined(__GNUC__) && (__GNUC__ >= 4)
85 # define LZ4LIB_VISIBILITY __attribute__ ((visibility ("default")))
87 # define LZ4LIB_VISIBILITY
90 #if defined(LZ4_DLL_EXPORT) && (LZ4_DLL_EXPORT==1)
91 # define LZ4LIB_API __declspec(dllexport) LZ4LIB_VISIBILITY
92 #elif defined(LZ4_DLL_IMPORT) && (LZ4_DLL_IMPORT==1)
93 # define LZ4LIB_API __declspec(dllimport) LZ4LIB_VISIBILITY
95 # define LZ4LIB_API LZ4LIB_VISIBILITY
99 #define LZ4_VERSION_MAJOR 1
100 #define LZ4_VERSION_MINOR 9
101 #define LZ4_VERSION_RELEASE 3
103 #define LZ4_VERSION_NUMBER (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE)
105 #define LZ4_LIB_VERSION LZ4_VERSION_MAJOR.LZ4_VERSION_MINOR.LZ4_VERSION_RELEASE
106 #define LZ4_QUOTE(str) #str
107 #define LZ4_EXPAND_AND_QUOTE(str) LZ4_QUOTE(str)
108 #define LZ4_VERSION_STRING LZ4_EXPAND_AND_QUOTE(LZ4_LIB_VERSION)
127 #ifndef LZ4_MEMORY_USAGE
128 # define LZ4_MEMORY_USAGE 14
171 #define LZ4_MAX_INPUT_SIZE 0x7E000000
172 #define LZ4_COMPRESSBOUND(isize) ((unsigned)(isize) > (unsigned)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)
383 #define LZ4_DECODER_RING_BUFFER_SIZE(maxBlockSize) (65536 + 14 + (maxBlockSize))
452 #ifdef LZ4_STATIC_LINKING_ONLY
454 #ifndef TRACY_LZ4_STATIC_3504398509
455 #define TRACY_LZ4_STATIC_3504398509
457 #ifdef LZ4_PUBLISH_STATIC_FUNCTIONS
458 #define LZ4LIB_STATIC_API LZ4LIB_API
460 #define LZ4LIB_STATIC_API
476 LZ4LIB_STATIC_API
int LZ4_compress_fast_extState_fastReset (
void* state,
const char*
src,
char*
dst,
int srcSize,
int dstCapacity,
int acceleration);
558 #define LZ4_DECOMPRESS_INPLACE_MARGIN(compressedSize) (((compressedSize) >> 8) + 32)
559 #define LZ4_DECOMPRESS_INPLACE_BUFFER_SIZE(decompressedSize) ((decompressedSize) + LZ4_DECOMPRESS_INPLACE_MARGIN(decompressedSize))
561 #ifndef LZ4_DISTANCE_MAX
562 # define LZ4_DISTANCE_MAX 65535
565 #define LZ4_COMPRESS_INPLACE_MARGIN (LZ4_DISTANCE_MAX + 32)
566 #define LZ4_COMPRESS_INPLACE_BUFFER_SIZE(maxCompressedSize) ((maxCompressedSize) + LZ4_COMPRESS_INPLACE_MARGIN)
573 #ifndef TRACY_LZ4_H_98237428734687
574 #define TRACY_LZ4_H_98237428734687
586 #define LZ4_HASHLOG (LZ4_MEMORY_USAGE-2)
587 #define LZ4_HASHTABLESIZE (1 << LZ4_MEMORY_USAGE)
588 #define LZ4_HASH_SIZE_U32 (1 << LZ4_HASHLOG)
590 #if defined(__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) )
630 #define LZ4_STREAMSIZE 16416
631 #define LZ4_STREAMSIZE_VOIDP (LZ4_STREAMSIZE / sizeof(void*))
662 #define LZ4_STREAMDECODESIZE_U64 (4 + ((sizeof(void*)==16) ? 2 : 0) )
663 #define LZ4_STREAMDECODESIZE (LZ4_STREAMDECODESIZE_U64 * sizeof(unsigned long long))
686 #ifdef LZ4_DISABLE_DEPRECATE_WARNINGS
687 # define LZ4_DEPRECATED(message)
689 # if defined (__cplusplus) && (__cplusplus >= 201402)
690 # define LZ4_DEPRECATED(message) [[deprecated(message)]]
691 # elif defined(_MSC_VER)
692 # define LZ4_DEPRECATED(message) __declspec(deprecated(message))
693 # elif defined(__clang__) || (defined(__GNUC__) && (__GNUC__ * 10 + __GNUC_MINOR__ >= 45))
694 # define LZ4_DEPRECATED(message) __attribute__((deprecated(message)))
695 # elif defined(__GNUC__) && (__GNUC__ * 10 + __GNUC_MINOR__ >= 31)
696 # define LZ4_DEPRECATED(message) __attribute__((deprecated))
698 # pragma message("WARNING: LZ4_DEPRECATED needs custom implementation for this compiler")
699 # define LZ4_DEPRECATED(message)