/freebsd-13-stable/sys/contrib/zstd/lib/common/ |
H A D | zstd_deps.h | 21 * ZSTD_memset() 34 # define ZSTD_memset(p,v,l) __builtin_memset((p),(v),(l)) macro 38 # define ZSTD_memset(p,v,l) memset((p),(v),(l)) macro
|
H A D | zstd_common.c | 17 #include "zstd_deps.h" /* ZSTD_malloc, ZSTD_calloc, ZSTD_free, ZSTD_memset */ 69 ZSTD_memset(ptr, 0, size);
|
H A D | entropy_common.c | 92 ZSTD_memset(normalizedCounter, 0, (*maxSVPtr+1) * sizeof(normalizedCounter[0])); /* all symbols not present in NCount have a frequency of 0 */ 278 /* ZSTD_memset(huffWeight, 0, hwSize); *//* is not necessary, even though some analyzer complain ... */ 299 ZSTD_memset(rankStats, 0, (HUF_TABLELOG_MAX + 1) * sizeof(U32));
|
H A D | bitstream.h | 279 if (srcSize < 1) { ZSTD_memset(bitD, 0, sizeof(*bitD)); return ERROR(srcSize_wrong); }
|
H A D | xxhash.c | 519 ZSTD_memset(&state, 0, sizeof(state)-4); /* do not write into reserved, for future removal */ 532 ZSTD_memset(&state, 0, sizeof(state)-8); /* do not write into reserved, for future removal */
|
/freebsd-13-stable/sys/contrib/zstd/lib/compress/ |
H A D | hist.c | 37 ZSTD_memset(count, 0, (maxSymbolValue+1) * sizeof(*count)); 84 ZSTD_memset(count, 0, countSize); 88 ZSTD_memset(workSpace, 0, 4*256*sizeof(unsigned));
|
H A D | zstd_cwksp.h | 405 ZSTD_memset(ws->tableValidEnd, 0, (BYTE*)ws->tableEnd - (BYTE*)ws->tableValidEnd); 500 ZSTD_memset(ws, 0, sizeof(ZSTD_cwksp)); 510 ZSTD_memset(src, 0, sizeof(ZSTD_cwksp));
|
H A D | huf_compress.c | 26 #include "../common/zstd_deps.h" /* ZSTD_memcpy, ZSTD_memset */ 264 ZSTD_memset(rankLast, 0xF0, sizeof(rankLast)); 385 ZSTD_memset(rankPosition, 0, sizeof(*rankPosition) * RANK_POSITION_TABLE_SIZE); 508 ZSTD_memset(huffNode0, 0, sizeof(huffNodeTable)); 802 ZSTD_memset(table->CTable + (maxSymbolValue + 1), 0,
|
H A D | zstd_compress.c | 14 #include "../common/zstd_deps.h" /* INT_MAX, ZSTD_memset, ZSTD_memcpy */ 85 ZSTD_memset(cctx, 0, sizeof(*cctx)); 117 ZSTD_memset(cctx, 0, sizeof(ZSTD_CCtx)); 137 ZSTD_memset(&cctx->localDict, 0, sizeof(cctx->localDict)); 138 ZSTD_memset(&cctx->prefixDict, 0, sizeof(cctx->prefixDict)); 266 ZSTD_memset(cctxParams, 0, sizeof(*cctxParams)); 276 ZSTD_memset(cctxParams, 0, sizeof(*cctxParams)); 1718 ZSTD_memset(zc->ldmState.bucketOffsets, 0, ldmBucketSize); 1742 ZSTD_memset(zc->ldmState.hashTable, 0, ldmHSize * sizeof(ldmEntry_t)); 1904 ZSTD_memset(cct [all...] |
H A D | zstd_compress_superblock.c | 121 ZSTD_memset(nextHuf->CTable, 0, sizeof(nextHuf->CTable)); 191 ZSTD_memset(workspace, 0, wkspSize);
|
H A D | zstdmt_compress.c | 23 #include "../common/zstd_deps.h" /* ZSTD_memcpy, ZSTD_memset, INT_MAX, UINT_MAX */ 478 ZSTD_memset(¶ms.ldmParams, 0, sizeof(params.ldmParams)); 509 ZSTD_memset(serialState->ldmState.hashTable, 0, hashSize); 510 ZSTD_memset(serialState->ldmState.bucketOffsets, 0, bucketSize); 537 ZSTD_memset(serialState, 0, sizeof(*serialState)); 960 ZSTD_memset(&mtctx->jobs[jobID], 0, sizeof(mtctx->jobs[jobID]));
|
H A D | fse_compress.c | 28 #include "../common/zstd_deps.h" /* ZSTD_malloc, ZSTD_free, ZSTD_memcpy, ZSTD_memset */ 95 ZSTD_memset(tableSymbol, 0, sizeof(*tableSymbol) * tableSize); /* useless initialization, just to keep scan-build happy */
|
H A D | zstd_compress_internal.h | 994 ZSTD_memset(window, 0, sizeof(*window));
|
/freebsd-13-stable/sys/contrib/zstd/lib/decompress/ |
H A D | huf_decompress.c | 18 #include "../common/zstd_deps.h" /* ZSTD_memcpy, ZSTD_memset */ 160 /* ZSTD_memset(huffWeight, 0, sizeof(huffWeight)); */ /* is not necessary, even though some analyzer complain ... */ 644 ZSTD_memset(rankStats, 0, sizeof(U32) * (2 * HUF_TABLELOG_MAX + 2 + 1)); 648 /* ZSTD_memset(weightList, 0, sizeof(weightList)); */ /* is not necessary, even though some analyzer complain ... */ 1113 if (cSrcSize == 1) { ZSTD_memset(dst, *(const BYTE*)cSrc, dstSize); return dstSize; } /* RLE */ 1295 if (cSrcSize == 1) { ZSTD_memset(dst, *(const BYTE*)cSrc, dstSize); return dstSize; } /* RLE */ 1318 if (cSrcSize == 1) { ZSTD_memset(dst, *(const BYTE*)cSrc, dstSize); return dstSize; } /* RLE */
|
H A D | zstd_decompress_block.c | 17 #include "../common/zstd_deps.h" /* ZSTD_memcpy, ZSTD_memmove, ZSTD_memset */ 169 ZSTD_memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); 197 ZSTD_memset(dctx->litBuffer + dctx->litSize, 0, WILDCOPY_OVERLENGTH); 226 ZSTD_memset(dctx->litBuffer, istart[lhSize], litSize + WILDCOPY_OVERLENGTH);
|
H A D | zstd_decompress.c | 58 #include "../common/zstd_deps.h" /* ZSTD_memcpy, ZSTD_memmove, ZSTD_memset */ 257 ZSTD_memset(zfhPtr, 0, sizeof(*zfhPtr)); /* not strictly necessary, but static analyzer do not understand that zfhPtr is only going to be read only if return value is zero, since they are 2 different signals */ 267 ZSTD_memset(zfhPtr, 0, sizeof(*zfhPtr)); 473 ZSTD_memset(&frameSizeInfo, 0, sizeof(ZSTD_frameSizeInfo)); 609 ZSTD_memset(dst, b, regenSize);
|