ReactOS 0.4.16-dev-297-gc569aee
|
Go to the source code of this file.
Enumerations | |
enum | HIST_checkInput_e { trustInput , checkMaxSymbolValue } |
Functions | |
unsigned | HIST_isError (size_t code) |
unsigned | HIST_count_simple (unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize) |
static size_t | HIST_count_parallel_wksp (unsigned *count, unsigned *maxSymbolValuePtr, const void *source, size_t sourceSize, HIST_checkInput_e check, U32 *const workSpace) |
size_t | HIST_countFast_wksp (unsigned *count, unsigned *maxSymbolValuePtr, const void *source, size_t sourceSize, void *workSpace, size_t workSpaceSize) |
size_t | HIST_countFast (unsigned *count, unsigned *maxSymbolValuePtr, const void *source, size_t sourceSize) |
size_t | HIST_count_wksp (unsigned *count, unsigned *maxSymbolValuePtr, const void *source, size_t sourceSize, void *workSpace, size_t workSpaceSize) |
size_t | HIST_count (unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSize) |
size_t HIST_count | ( | unsigned * | count, |
unsigned * | maxSymbolValuePtr, | ||
const void * | src, | ||
size_t | srcSize | ||
) |
HIST_count(): Provides the precise count of each byte within a table 'count'. 'count' is a table of unsigned int, of minimum size (*maxSymbolValuePtr+1). Updates *maxSymbolValuePtr with actual largest symbol value detected.
Definition at line 178 of file hist.c.
|
static |
Definition at line 66 of file hist.c.
Referenced by HIST_count_wksp(), and HIST_countFast_wksp().
unsigned HIST_count_simple | ( | unsigned * | count, |
unsigned * | maxSymbolValuePtr, | ||
const void * | src, | ||
size_t | srcSize | ||
) |
HIST_count_simple() : Same as HIST_countFast(), this function is unsafe, and will segfault if any value within src
is > *maxSymbolValuePtr
. It is also a bit slower for large inputs. However, it does not need any additional memory (not even on stack).
Definition at line 29 of file hist.c.
Referenced by HIST_countFast_wksp(), HUF_compressWeights(), and ZSTD_rescaleFreqs().
size_t HIST_count_wksp | ( | unsigned * | count, |
unsigned * | maxSymbolValuePtr, | ||
const void * | src, | ||
size_t | srcSize, | ||
void * | workSpace, | ||
size_t | workSpaceSize | ||
) |
HIST_count_wksp() : Same as HIST_count(), but using an externally provided scratch buffer. Benefit is this function will use very little stack space. workSpace
is a writable buffer which must be 4-bytes aligned, workSpaceSize
must be >= HIST_WKSP_SIZE
Definition at line 166 of file hist.c.
Referenced by FSE_compress_wksp(), HIST_count(), HUF_compress_internal(), ZSTD_buildSuperBlockEntropy_literal(), and ZSTD_estimateSubBlockSize_literal().
size_t HIST_countFast | ( | unsigned * | count, |
unsigned * | maxSymbolValuePtr, | ||
const void * | src, | ||
size_t | srcSize | ||
) |
HIST_countFast() : same as HIST_count(), but blindly trusts that all byte values within src are <= *maxSymbolValuePtr. This function is unsafe, and will segfault if any value within src
is > *maxSymbolValuePtr
Definition at line 156 of file hist.c.
size_t HIST_countFast_wksp | ( | unsigned * | count, |
unsigned * | maxSymbolValuePtr, | ||
const void * | src, | ||
size_t | srcSize, | ||
void * | workSpace, | ||
size_t | workSpaceSize | ||
) |
HIST_countFast_wksp() : Same as HIST_countFast(), but using an externally provided scratch buffer. workSpace
is a writable buffer which must be 4-bytes aligned, workSpaceSize
must be >= HIST_WKSP_SIZE
Definition at line 144 of file hist.c.
Referenced by HIST_count_wksp(), HIST_countFast(), ZSTD_buildSuperBlockEntropy_sequences(), ZSTD_compressSequences_internal(), and ZSTD_estimateSubBlockSize_symbolType().
tells if a return value is an error code
Definition at line 24 of file hist.c.