Changeset View
Changeset View
Standalone View
Standalone View
contrib/zstd/lib/decompress/huf_decompress.c
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
# define FORCE_INLINE static | # define FORCE_INLINE static | ||||
# endif /* __STDC_VERSION__ */ | # endif /* __STDC_VERSION__ */ | ||||
#endif | #endif | ||||
/* ************************************************************** | /* ************************************************************** | ||||
* Dependencies | * Dependencies | ||||
****************************************************************/ | ****************************************************************/ | ||||
#ifdef _KERNEL | |||||
#include <sys/systm.h> /* memcpy, memset */ | |||||
#else | |||||
#include <string.h> /* memcpy, memset */ | #include <string.h> /* memcpy, memset */ | ||||
#endif | |||||
#include "bitstream.h" /* BIT_* */ | #include "bitstream.h" /* BIT_* */ | ||||
#include "fse.h" /* header compression */ | #include "fse.h" /* header compression */ | ||||
#define HUF_STATIC_LINKING_ONLY | #define HUF_STATIC_LINKING_ONLY | ||||
#include "huf.h" | #include "huf.h" | ||||
#if defined(ZSTD_HEAPMODE) && (ZSTD_HEAPMODE==1) | |||||
#include "zstd_internal.h" /* defaultCustomMem */ | |||||
static ZSTD_customMem customMalloc = { ZSTD_defaultAllocFunction, ZSTD_defaultFreeFunction, NULL }; | |||||
#endif | |||||
/* ************************************************************** | /* ************************************************************** | ||||
* Error Management | * Error Management | ||||
****************************************************************/ | ****************************************************************/ | ||||
#define HUF_STATIC_ASSERT(c) { enum { HUF_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */ | #define HUF_STATIC_ASSERT(c) { enum { HUF_static_assert = 1/(int)(!!(c)) }; } /* use only *after* variable declarations */ | ||||
/*-***************************/ | /*-***************************/ | ||||
▲ Show 20 Lines • Show All 818 Lines • Show Last 20 Lines |