/freebsd-12-stable/sys/contrib/zstd/tests/ |
H A D | fuzzer.c | 57 #define DISPLAYLEVEL(l, ...) if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } macro 143 DISPLAYLEVEL(4, "allocating %u KB => effectively %u KB \n", 156 DISPLAYLEVEL(4, "freeing %u KB \n", (U32)(malloc_size(address) >> 10)); 164 DISPLAYLEVEL(3, "peak:%6u KB, nbMallocs:%2u, total:%6u KB \n", 196 DISPLAYLEVEL(3, "compressCCtx level %i : ", compressionLevel); 213 DISPLAYLEVEL(3, "compressStream level %i : ", compressionLevel); 232 DISPLAYLEVEL(3, "compress_generic,-T%u,end level %i : ", 253 DISPLAYLEVEL(3, "compress_generic,-T%u,continue level %i : ", 296 DISPLAYLEVEL(3, "test%3i : ZSTD_getErrorName : ", testNb++); 298 DISPLAYLEVEL( [all...] |
H A D | datagencli.c | 36 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); } macro 121 DISPLAYLEVEL(4, "Compressible data Generator \n"); 123 DISPLAYLEVEL(3, "Compressibility : %i%%\n", probaU32); 124 DISPLAYLEVEL(3, "Seed = %u \n", seed); 127 DISPLAYLEVEL(1, "\n");
|
H A D | zstreamtest.c | 60 #define DISPLAYLEVEL(l, ...) if (g_displayLevel>=l) { \ macro 241 DISPLAYLEVEL(3, "creating dictionary for unit tests \n"); 250 DISPLAYLEVEL(3, "test%3i : compress %u bytes : ", testNb++, COMPRESSIBLE_NOISE_LENGTH); 262 DISPLAYLEVEL(3, "OK (%u bytes)\n", (U32)outBuff.pos); 270 DISPLAYLEVEL(3, "test%3i : skipframe + compress %u bytes : ", testNb++, COMPRESSIBLE_NOISE_LENGTH); 284 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/COMPRESSIBLE_NOISE_LENGTH*100); 287 DISPLAYLEVEL(3, "test%3i : estimate CStream size : ", testNb++); 293 DISPLAYLEVEL(3, "OK (%u bytes) \n", (U32)(cstreamSize + cdictSize)); 296 DISPLAYLEVEL(3, "test%3i : check actual CStream size : ", testNb++); 299 DISPLAYLEVEL( [all...] |
H A D | zbufftest.c | 58 #define DISPLAYLEVEL(l, ...) if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } macro 108 /* DISPLAYLEVEL(4, "alloc %p, %d opaque=%p \n", address, (int)size, opaque); */ 115 /* if (address) DISPLAYLEVEL(4, "free %p opaque=%p \n", address, opaque); */ 147 DISPLAYLEVEL(4, "test%3i : compress %u bytes : ", testNb++, COMPRESSIBLE_NOISE_LENGTH); 159 DISPLAYLEVEL(4, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/COMPRESSIBLE_NOISE_LENGTH*100); 162 DISPLAYLEVEL(4, "test%3i : decompress skippable frame : ", testNb++); 169 DISPLAYLEVEL(4, "OK \n"); 172 DISPLAYLEVEL(4, "test%3i : decompress %u bytes : ", testNb++, COMPRESSIBLE_NOISE_LENGTH); 180 DISPLAYLEVEL(4, "OK \n"); 183 DISPLAYLEVEL( [all...] |
H A D | decodecorpus.c | 47 #define DISPLAYLEVEL(l, ...) if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } macro 353 DISPLAYLEVEL(3, " frame content size:\t%u\n", (U32)fh.contentSize); 354 DISPLAYLEVEL(3, " frame window size:\t%u\n", fh.windowSize); 355 DISPLAYLEVEL(3, " content size flag:\t%d\n", contentSizeFlag); 356 DISPLAYLEVEL(3, " single segment flag:\t%d\n", singleSegment); 406 DISPLAYLEVEL(4, " raw literals\n"); 415 DISPLAYLEVEL(4, " rle literals: 0x%02x\n", (U32)symb); 448 DISPLAYLEVEL(6, " huffman log: %u\n", huffLog); 483 DISPLAYLEVEL(4, " compressed literals\n"); 518 DISPLAYLEVEL( [all...] |
/freebsd-12-stable/sys/contrib/zstd/programs/ |
H A D | dibio.c | 55 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); } macro 142 DISPLAYLEVEL(2, "\r%79s\r", ""); 144 DISPLAYLEVEL(4, "loaded : %u KB \n", (U32)(pos >> 10)) 253 DISPLAYLEVEL(4, "Preparing to load : %u KB \n", (U32)(fs.totalSizeToLoad >> 10)); 291 DISPLAYLEVEL(2, "! Warning : some sample(s) are very large \n"); 292 DISPLAYLEVEL(2, "! Note that dictionary is only useful for small samples. \n"); 293 DISPLAYLEVEL(2, "! As a consequence, only the first %u bytes of each sample are loaded \n", SAMPLESIZE_MAX); 296 DISPLAYLEVEL(2, "! Warning : nb of samples too low for proper processing ! \n"); 297 DISPLAYLEVEL(2, "! Please provide _one file per sample_. \n"); 298 DISPLAYLEVEL( [all...] |
H A D | fileio.c | 83 #define DISPLAYLEVEL(l, ...) { if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } } macro 121 DISPLAYLEVEL(1, "zstd: "); \ 123 DISPLAYLEVEL(1, "error %i : ", error); \ 124 DISPLAYLEVEL(1, __VA_ARGS__); \ 125 DISPLAYLEVEL(1, " \n"); \ 226 if (nbWorkers > 0) DISPLAYLEVEL(2, "Note : multi-threading is disabled \n"); 233 DISPLAYLEVEL(2, "Setting block size is useless in single-thread mode \n"); 240 DISPLAYLEVEL(2, "Setting overlapLog is useless in single-thread mode \n"); 277 DISPLAYLEVEL(2, "zstd: Refusing to remove non-regular file %s\n", path); 295 DISPLAYLEVEL( [all...] |
H A D | zstdcli.c | 92 #define DISPLAYLEVEL(l, ...) { if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } } macro 192 DISPLAYLEVEL(1, "Incorrect parameters\n"); 273 DISPLAYLEVEL(4, "cover: k=%u\nd=%u\nsteps=%u\n", params->k, params->d, params->steps); 288 DISPLAYLEVEL(4, "legacy: selectivity=%u\n", *selectivity); 323 DISPLAYLEVEL(4, "invalid compression parameter \n"); 327 DISPLAYLEVEL(4, "windowLog=%d, chainLog=%d, hashLog=%d, searchLog=%d \n", params->windowLog, params->chainLog, params->hashLog, params->searchLog); 328 DISPLAYLEVEL(4, "searchLength=%d, targetLength=%d, strategy=%d \n", params->searchLength, params->targetLength, params->strategy); 337 DISPLAYLEVEL(3, "*** supports: zstd"); 339 DISPLAYLEVEL(3, ", zstd legacy v0.%d+", ZSTD_LEGACY_SUPPORT); 342 DISPLAYLEVEL( [all...] |
H A D | bench.c | 73 #define DISPLAYLEVEL(l, ...) if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } macro 94 DISPLAYLEVEL(1, "Error %i : ", error); \ 95 DISPLAYLEVEL(1, __VA_ARGS__); \ 96 DISPLAYLEVEL(1, " \n"); \ 115 DISPLAYLEVEL(3, "- test >= %u seconds per compression / decompression - \n", g_nbSeconds); 122 if (g_blockSize) DISPLAYLEVEL(2, "using blocks of size %u KB \n", (U32)(blockSize>>10)); 130 if (nbWorkers > 0) DISPLAYLEVEL(2, "Note : multi-threading is disabled \n"); 284 DISPLAYLEVEL(2, "\r%79s\r", ""); 289 DISPLAYLEVEL(2, "\rcooling down ... \r"); 296 DISPLAYLEVEL( [all...] |
/freebsd-12-stable/sys/contrib/zstd/lib/dictBuilder/ |
H A D | zdict.c | 72 #define DISPLAYLEVEL(l, ...) if (notificationLevel>=l) { DISPLAY(__VA_ARGS__); } /* 0 : no display; 1: errors; 2: default; 3: details; 4: debug */ macro 262 DISPLAYLEVEL(4, "\n"); 263 DISPLAYLEVEL(4, "found %3u matches of length >= %i at pos %7u ", (U32)(end-start), MINMATCHLENGTH, (U32)pos); 264 DISPLAYLEVEL(4, "\n"); 344 DISPLAYLEVEL(4, "Selected ref at position %u, of length %u : saves %u (ratio: %.2f) \n", 517 DISPLAYLEVEL(2, "\r%70s\r", ""); /* clean display line */ 526 if (bufferSize > ZDICT_MAX_SAMPLES_SIZE) DISPLAYLEVEL(3, "sample set too large : reduced to %u MB ...\n", (U32)(ZDICT_MAX_SAMPLES_SIZE>>20)); 530 DISPLAYLEVEL(2, "sorting %u files of total size %u MB ...\n", nbFiles, (U32)(bufferSize>>20)); 547 DISPLAYLEVEL(2, "finding patterns ... \n"); 548 DISPLAYLEVEL( [all...] |
H A D | cover.c | 56 #define DISPLAYLEVEL(l, ...) LOCALDISPLAYLEVEL(g_displayLevel, l, __VA_ARGS__) macro 540 DISPLAYLEVEL(1, "Total samples size is too large (%u MB), maximum size is %u MB\n", 546 DISPLAYLEVEL(2, "Training on %u samples of total size %u\n", nbSamples, 559 DISPLAYLEVEL(1, "Failed to allocate scratch buffers\n"); 574 DISPLAYLEVEL(2, "Constructing partial suffix array\n"); 589 DISPLAYLEVEL(2, "Computing frequencies\n"); 619 DISPLAYLEVEL(2, "Breaking content into %u epochs of size %u\n", epochs, 649 DISPLAYLEVEL(2, "\r%79s\r", ""); 666 DISPLAYLEVEL(1, "Cover parameters incorrect\n"); 670 DISPLAYLEVEL( [all...] |
/freebsd-12-stable/sys/contrib/zstd/zlibWrapper/examples/ |
H A D | zwrapbench.c | 74 #define DISPLAYLEVEL(l, ...) if (g_displayLevel>=l) { DISPLAY(__VA_ARGS__); } macro 96 DISPLAYLEVEL(1, "Error %i : ", error); \ 97 DISPLAYLEVEL(1, __VA_ARGS__); \ 98 DISPLAYLEVEL(1, "\n"); \ 117 DISPLAYLEVEL(3, "- test >= %u seconds per compression / decompression -\n", g_nbIterations); 123 DISPLAYLEVEL(2, "using blocks of size %u KB \n", (U32)(blockSize>>10)); 211 DISPLAYLEVEL(2, "\r%79s\r", ""); 218 DISPLAYLEVEL(2, "\rcooling down ... \r"); 224 DISPLAYLEVEL(2, "%2s-%-17.17s :%10u ->\r", marks[markNb], displayName, (U32)srcSize); 372 DISPLAYLEVEL( [all...] |