HomeSort by: relevance | last modified time | path
    Searched refs:dictID (Results 1 - 16 of 16) sorted by relevancy

  /src/external/bsd/zstd/dist/lib/decompress/
zstd_ddict.c 41 U32 dictID;
63 dctx->dictID = ddict->dictID;
93 ddict->dictID = 0;
109 ddict->dictID = MEM_readLE32((const char*)ddict->dictContent + ZSTD_FRAMEIDSIZE);
237 * Provides the dictID of the dictionary loaded into `ddict`.
243 return ddict->dictID;
zstd_decompress.c 95 static size_t ZSTD_DDictHashSet_getIndex(const ZSTD_DDictHashSet* hashSet, U32 dictID) {
96 const U64 hash = XXH64(&dictID, sizeof(U32), 0);
102 * If inserting a DDict with a dictID that already exists in the set, replaces the one in the set.
106 const U32 dictID = ZSTD_getDictID_fromDDict(ddict);
107 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID);
110 DEBUGLOG(4, "Hashed index: for dictID: %u is %zu", dictID, idx);
112 /* Replace existing ddict if inserting ddict with same dictID */
113 if (ZSTD_getDictID_fromDDict(hashSet->ddictPtrTable[idx]) == dictID) {
114 DEBUGLOG(4, "DictID already exists, replacing rather than adding")
    [all...]
zstd_decompress_internal.h 164 U32 dictID;
  /src/external/bsd/zstd/dist/lib/legacy/
zstd_v07.h 117 unsigned dictID;
zstd_v07.c 2893 U32 dictID;
2917 dctx->dictID = 0;
2980 bit 0-1 : dictID (0, 1, 2 or 4 bytes)
2992 Optional : dictID (0, 1, 2 or 4 bytes)
2994 0 : no dictID
3081 U32 const dictID= fhd & 3;
3084 return ZSTDv07_frameHeaderSize_min + !directMode + ZSTDv07_did_fieldSize[dictID] + ZSTDv07_fcs_fieldSize[fcsId]
3123 U32 dictID = 0;
3140 case 1 : dictID = ip[pos]; pos++; break;
3141 case 2 : dictID = MEM_readLE16(ip+pos); pos+=2; break
    [all...]
  /src/external/bsd/zstd/dist/tests/
decodecorpus.c 236 U32 dictID;
369 MEM_writeLE32(op + pos, (U32) info.dictID);
1293 static int genRandomDict(U32 dictID, U32 seed, size_t dictSize, BYTE* fullDict)
1332 zdictParams.dictID = dictID;
1355 static dictInfo initDictInfo(int useDict, size_t dictContentSize, BYTE* dictContent, U32 dictID){
1362 dictOp.dictID = dictID;
1431 U32 const dictID = RAND(&seed);
1439 if (genRandomDict(dictID, seed, dictSize, fullDict)) { /* return 0 on success *
    [all...]
playTests.sh 1133 println "- Create dictionary with short dictID"
1134 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
1136 println "- Create dictionary with wrong dictID parameter order (must fail)"
1137 zstd --train "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID -o 1 tmpDict1 && die "wrong order : --dictID must be followed by argument "
1144 println "- Compress without dictID"
1145 zstd -f tmp -D tmpDict1 --no-dictID
1201 println "- Create dictionary with short dictID"
1202 zstd --train-fastcover=k=46,d=8,f=15,split=80 "$TESTDIR"/*.c "$PRGDIR"/*.c --dictID=1 -o tmpDict1
1245 println "- Create dictionary with short dictID"
    [all...]
fuzzer.c 2643 U32 dictID;
2742 DISPLAYLEVEL(3, "test%3i : check dictID : ", testNb++);
2743 dictID = ZDICT_getDictID(dictBuffer, dictSize);
2744 if (dictID==0) goto _output_error;
2745 DISPLAYLEVEL(3, "OK : %u \n", (unsigned)dictID);
2765 DISPLAYLEVEL(3, "test%3i : retrieve dictID from dictionary : ", testNb++);
2767 if (did != dictID) goto _output_error; /* non-conformant (content-only) dictionary */
2771 DISPLAYLEVEL(3, "test%3i : retrieve dictID from frame : ", testNb++);
2773 if (did != dictID) goto _output_error; /* non-conformant (content-only) dictionary */
2809 DISPLAYLEVEL(3, "test%3i : retrieve dictID from frame : ", testNb++)
    [all...]
zstreamtest.c 284 unsigned dictID = 0;
302 dictID = ZDICT_getDictID(dictionary.start, dictionary.filled);
1115 if (dID != dictID) goto _output_error;
1344 DISPLAYLEVEL(3, "test%3i : ZSTD_initCStream_usingCDict_advanced with masked dictID : ", testNb++);
1365 DISPLAYLEVEL(3, "test%3i : try retrieving dictID from frame : ", testNb++);
  /src/external/bsd/zstd/dist/lib/
zdict.h 217 unsigned dictID; /**< force dictID value; 0 means auto mode (32-bits random value)
269 ZDICTLIB_API unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); /**< extracts dictID; @return zero if error (not a valid dictionary) */
zstd.h 1011 * and frame parameters are hardcoded (dictID=yes, contentSize=yes, checksum=no) */
1044 * Provides the dictID stored within dictionary.
1050 * Provides the dictID of the dictionary loaded into `cdict`.
1056 * Provides the dictID of the dictionary loaded into `ddict`.
1062 * Provides the dictID required to decompressed the frame stored within `src`.
1063 * If @return == 0, the dictID could not be decoded.
1066 * - The frame was built with dictID intentionally removed. Whatever dictionary is necessary is a hidden piece of information.
1365 int noDictIDFlag; /**< 1: no dictID will be saved into frame header (dictID is only useful for dictionary compression) */
1518 unsigned dictID; /* for ZSTD_skippableFrame, contains the skippable magic variant [0-15] *
    [all...]
  /src/external/bsd/zstd/dist/lib/dictBuilder/
zdict.c 881 U32 const dictID = params.dictID ? params.dictID : compliantID;
882 MEM_writeLE32(header+4, dictID);
965 U32 const dictID = params.dictID ? params.dictID : compliantID;
966 MEM_writeLE32((char*)dictBuffer+4, dictID);
  /src/external/bsd/zstd/dist/lib/compress/
zstd_compress.c 89 U32 dictID;
843 case ZSTD_c_dictIDFlag : /* When applicable, dictionary's dictID is provided in frame header (default:1) */
2205 zc->dictID = 0;
2377 cctx->dictID = cdict->dictID;
2475 cctx->dictID = cdict->dictID;
2577 dstCCtx->dictID = srcCCtx->dictID;
4697 U64 pledgedSrcSize, U32 dictID)
    [all...]
zstd_compress_internal.h 479 U32 dictID;
  /src/external/bsd/zstd/dist/programs/
zstdcli.c 248 DISPLAYOUT(" --no-dictID Don't write `dictID` into the header (dictionary compression only).\n");
301 DISPLAYOUT(" --dictID=# Force dictionary ID to #. [Default: Random]\n");
895 unsigned dictID = 0;
986 if (!strcmp(argument, "--no-dictID")) { FIO_setDictIDFlag(prefs, 0); continue; }
1078 if (longCommandWArg(&argument, "--dictID")) { NEXT_UINT32(dictID); continue; }
1462 zParams.dictID = dictID;
1481 (void)dictCLevel; (void)dictSelect; (void)dictID; (void)maxDictSize; /* not used when ZSTD_NODICT set *
    [all...]
fileio.c 2119 DISPLAY("%s", prefs->dictIDFlag ? "" : " --no-dictID");
3160 unsigned dictID;
3215 if (info->dictID != 0 && info->dictID != header.dictID) {
3216 DISPLAY("WARNING: File contains multiple frames with different dictionary IDs. Showing dictID 0 instead");
3217 info->dictID = 0;
3219 info->dictID = header.dictID;
3334 DISPLAYOUT("DictID: %u\n", info->dictID)
    [all...]

Completed in 59 milliseconds