![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>#include "../common/mem.h"#include "../common/pool.h"#include "../common/threading.h"#include "../common/zstd_internal.h"#include "../compress/zstd_compress_internal.h"#include "../zdict.h"#include "cover.h"Data Structures | |
| struct | FASTCOVER_accel_t |
| struct | FASTCOVER_ctx_t |
| struct | FASTCOVER_tryParameters_data_s |
Macros | |
| #define | ZDICT_STATIC_LINKING_ONLY |
| #define | FASTCOVER_MAX_SAMPLES_SIZE (sizeof(size_t) == 8 ? ((unsigned)-1) : ((unsigned)1 GB)) |
| #define | FASTCOVER_MAX_F 31 |
| #define | FASTCOVER_MAX_ACCEL 10 |
| #define | FASTCOVER_DEFAULT_SPLITPOINT 0.75 |
| #define | DEFAULT_F 20 |
| #define | DEFAULT_ACCEL 1 |
| #define | DISPLAY(...) |
| #define | LOCALDISPLAYLEVEL(displayLevel, l, ...) |
| #define | DISPLAYLEVEL(l, ...) |
| #define | LOCALDISPLAYUPDATE(displayLevel, l, ...) |
| #define | DISPLAYUPDATE(l, ...) |
Typedefs | |
| typedef struct FASTCOVER_tryParameters_data_s | FASTCOVER_tryParameters_data_t |
Functions | |
| ZDICTLIB_API size_t | ZDICT_trainFromBuffer_fastCover (void *dictBuffer, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, ZDICT_fastCover_params_t parameters) |
| ZDICTLIB_API size_t | ZDICT_optimizeTrainFromBuffer_fastCover (void *dictBuffer, size_t dictBufferCapacity, const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, ZDICT_fastCover_params_t *parameters) |
| #define DEFAULT_ACCEL 1 |
| #define DEFAULT_F 20 |
| #define DISPLAY | ( | ... | ) |
| #define DISPLAYLEVEL | ( | l, | |
| ... ) |
| #define DISPLAYUPDATE | ( | l, | |
| ... ) |
| #define FASTCOVER_DEFAULT_SPLITPOINT 0.75 |
| #define FASTCOVER_MAX_ACCEL 10 |
| #define FASTCOVER_MAX_F 31 |
| #define FASTCOVER_MAX_SAMPLES_SIZE (sizeof(size_t) == 8 ? ((unsigned)-1) : ((unsigned)1 GB)) |
There are 32bit indexes used to ref samples, so limit samples size to 4GB on 64bit builds. For 32bit builds we choose 1 GB. Most 32bit platforms have 2GB user-mode addressable space and we allocate a large contiguous buffer, so 1GB is already a high limit.
| #define LOCALDISPLAYLEVEL | ( | displayLevel, | |
| l, | |||
| ... ) |
| #define LOCALDISPLAYUPDATE | ( | displayLevel, | |
| l, | |||
| ... ) |
| #define ZDICT_STATIC_LINKING_ONLY |
| typedef struct FASTCOVER_tryParameters_data_s FASTCOVER_tryParameters_data_t |
Parameters for FASTCOVER_tryParameters().
| ZDICTLIB_API size_t ZDICT_optimizeTrainFromBuffer_fastCover | ( | void * | dictBuffer, |
| size_t | dictBufferCapacity, | ||
| const void * | samplesBuffer, | ||
| const size_t * | samplesSizes, | ||
| unsigned | nbSamples, | ||
| ZDICT_fastCover_params_t * | parameters ) |
| ZDICTLIB_API size_t ZDICT_trainFromBuffer_fastCover | ( | void * | dictBuffer, |
| size_t | dictBufferCapacity, | ||
| const void * | samplesBuffer, | ||
| const size_t * | samplesSizes, | ||
| unsigned | nbSamples, | ||
| ZDICT_fastCover_params_t | parameters ) |