#include "util.h"
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "timefn.h"
#include "mem.h"
#include "zstd_internal.h"
#include "decompress/zstd_decompress_internal.h"
#include "zstd.h"
#include "datagen.h"
#include "benchfn.h"
#include "benchzstd.h"
◆ AUTHOR
#define AUTHOR "Yann Collet" |
◆ COMPRESSIBILITY_DEFAULT
#define COMPRESSIBILITY_DEFAULT 0.50 |
◆ CONTROL
Value:{
if (!(
c)) { abort(); } }
#define c(i)
Definition sha256.c:43
◆ DEFAULT_CLEVEL
◆ DISPLAY
Value:fprintf(stderr, __VA_ARGS__)
◆ ERROR_OUT
Value:{
DISPLAY(
"%s \n", msg); exit(1); }
#define DISPLAY(...)
Definition fullbench.c:91
◆ FIRST_BLOCK_SIZE
#define FIRST_BLOCK_SIZE 8 |
◆ MAX_MEM
#define MAX_MEM (1984 MB) |
◆ NBLOOPS
◆ PROGRAM_DESCRIPTION
#define PROGRAM_DESCRIPTION "Zstandard speed analyzer" |
◆ TIMELOOP_NANOSEC
#define TIMELOOP_NANOSEC (1*1000000000ULL) /* 1 second */ |
◆ TIMELOOP_S
◆ WELCOME_MESSAGE
◆ ZSTD_DISABLE_DEPRECATE_WARNINGS
#define ZSTD_DISABLE_DEPRECATE_WARNINGS /* No deprecation warnings, we still bench some deprecated functions */ |
◆ ZSTD_STATIC_LINKING_ONLY
◆ streaming_operation
Enumerator |
---|
not_streaming | |
is_streaming | |
◆ main()
◆ ZSTD_decodeLiteralsBlock()
ZSTD_decodeLiteralsBlock() : Where it is possible to do so without being stomped by the output during decompression, the literals block will be stored in the dstBuffer. If there is room to do so, it will be stored in full in the excess dst space after where the current block will be output. Otherwise it will be stored at the end of the current dst blockspace, with a small portion being stored in dctx->litExtraBuffer to help keep it "ahead" of the current output write.
- Returns
- : nb of bytes read from src (< srcSize ) note : symbol not declared but exposed for fullbench
◆ ZSTD_decodeLiteralsHeader()