Home
last modified time | relevance | path

Searched refs:U64 (Results 1 – 13 of 13) sorted by relevance

/lib/zstd/common/
Dmem.h37 typedef uint64_t U64; typedef
51 MEM_STATIC U64 MEM_read64(const void* memPtr);
56 MEM_STATIC void MEM_write64(void* memPtr, U64 value);
62 MEM_STATIC U64 MEM_readLE64(const void* memPtr);
68 MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64);
73 MEM_STATIC U64 MEM_readBE64(const void* memPtr);
77 MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64);
82 MEM_STATIC U64 MEM_swap64(U64 in);
119 MEM_STATIC U64 MEM_read64(const void *memPtr) in MEM_read64()
121 return get_unaligned((const U64 *)memPtr); in MEM_read64()
[all …]
Dfse_decompress.c115 U64 const add = 0x0101010101010101ull; in FSE_buildDTable_internal()
117 U64 sv = 0; in FSE_buildDTable_internal()
/lib/zstd/compress/
Dzstd_compress_internal.h567 return (__builtin_ctzll((U64)val) >> 3); in ZSTD_NbCommonBytes()
577 return DeBruijnBytePos[((U64)((val & -(long long)val) * 0x0218A392CDABBD3FULL)) >> 58]; in ZSTD_NbCommonBytes()
667 static const U64 prime5bytes = 889523592379ULL;
668 static size_t ZSTD_hash5(U64 u, U32 h) { return (size_t)(((u << (64-40)) * prime5bytes) >> (64-h))… in ZSTD_hash5()
671 static const U64 prime6bytes = 227718039650203ULL;
672 static size_t ZSTD_hash6(U64 u, U32 h) { return (size_t)(((u << (64-48)) * prime6bytes) >> (64-h))… in ZSTD_hash6()
675 static const U64 prime7bytes = 58295818150454627ULL;
676 static size_t ZSTD_hash7(U64 u, U32 h) { return (size_t)(((u << (64-56)) * prime7bytes) >> (64-h))… in ZSTD_hash7()
679 static const U64 prime8bytes = 0xCF1BBCDCB7A56463ULL;
680 static size_t ZSTD_hash8(U64 u, U32 h) { return (size_t)(((u) * prime8bytes) >> (64-h)) ; } in ZSTD_hash8()
[all …]
Dfse_compress.c411 { U64 const vStepLog = 62 - tableLog; in FSE_normalizeM2()
412 U64 const mid = (1ULL << (vStepLog-1)) - 1; in FSE_normalizeM2()
413U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
414 U64 tmpTotal = mid; in FSE_normalizeM2()
417 U64 const end = tmpTotal + (count[s] * rStep); in FSE_normalizeM2()
442 U64 const scale = 62 - tableLog; in FSE_normalizeCount()
443 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
444 U64 const vStep = 1ULL<<(scale-20); in FSE_normalizeCount()
460 U64 restToBeat = vStep * rtbTable[proba]; in FSE_normalizeCount()
461 proba += (count[s]*step) - ((U64)proba<<scale) > restToBeat; in FSE_normalizeCount()
Dzstd_ldm_geartab.h14 static U64 ZSTD_ldm_gearTab[256] = {
Dzstd_ldm.c24 U64 rolling;
25 U64 stopMask;
53 state->stopMask = (((U64)1 << hashRateLog) - 1) << (maxBitsInMask - hashRateLog); in ZSTD_ldm_gear_init()
56 state->stopMask = ((U64)1 << hashRateLog) - 1; in ZSTD_ldm_gear_init()
74 U64 hash, mask; in ZSTD_ldm_gear_feed()
265 U64 const xxhash = xxh64(split, minMatchLength, 0); in ZSTD_ldm_fillHashTable()
351 U64 const xxhash = xxh64(split, minMatchLength, 0); in ZSTD_ldm_generateSequences_internal()
Dzstd_compress.c1096 static U32 ZSTD_dictAndWindowLog(U32 windowLog, U64 srcSize, U64 dictSize) in ZSTD_dictAndWindowLog()
1098 const U64 maxWindowSize = 1ULL << ZSTD_WINDOWLOG_MAX; in ZSTD_dictAndWindowLog()
1106 U64 const windowSize = 1ULL << windowLog; in ZSTD_dictAndWindowLog()
1107 U64 const dictAndWindowSize = dictSize + windowSize; in ZSTD_dictAndWindowLog()
1135 const U64 minSrcSize = 513; /* (1<<9) + 1 */ in ZSTD_adjustCParams_internal()
1136 const U64 maxWindowResize = 1ULL << (ZSTD_WINDOWLOG_MAX-1); in ZSTD_adjustCParams_internal()
1176 … U32 const dictAndWindowLog = ZSTD_dictAndWindowLog(cPar.windowLog, (U64)srcSize, (U64)dictSize); in ZSTD_adjustCParams_internal()
1216 … const ZSTD_CCtx_params* CCtxParams, U64 srcSizeHint, size_t dictSize, ZSTD_cParamMode_e mode) in ZSTD_getCParamsFromCCtxParams()
1264 const U64 pledgedSrcSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1266 size_t const windowSize = MAX(1, (size_t)MIN(((U64)1 << cParams->windowLog), pledgedSrcSize)); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
[all …]
/lib/lz4/
Dlz4defs.h54 typedef uint64_t U64; typedef
156 U64 a = get_unaligned((const U64 *)src); in LZ4_copy8()
158 put_unaligned(a, (U64 *)dst); in LZ4_copy8()
Dlz4_compress.c61 U64 sequence, in LZ4_hash5()
69 static const U64 prime5bytes = 889523592379ULL; in LZ4_hash5()
73 static const U64 prime8bytes = 11400714785074694791ULL; in LZ4_hash5()
/lib/zstd/decompress/
Dzstd_decompress_internal.h76 #define ZSTD_BUILD_FSE_TABLE_WKSP_SIZE (sizeof(S16) * (MaxSeq + 1) + (1u << MaxFSELog) + sizeof(U64
123 U64 processedCSize;
124 U64 decodedSize;
Dzstd_decompress.c89 const U64 hash = xxh64(&dictID, sizeof(U32), 0); in ZSTD_DDictHashSet_getIndex()
444 U64 windowSize = 0; in ZSTD_getFrameHeader_advanced()
446 U64 frameContentSize = ZSTD_CONTENTSIZE_UNKNOWN; in ZSTD_getFrameHeader_advanced()
772 static void ZSTD_DCtx_trace_end(ZSTD_DCtx const* dctx, U64 uncompressedSize, U64 compressedSize, un… in ZSTD_DCtx_trace_end()
852 RETURN_ERROR_IF((U64)(op-ostart) != dctx->fParams.frameContentSize, in ZSTD_decompressFrame()
866 ZSTD_DCtx_trace_end(dctx, (U64)(op-ostart), (U64)(ip-istart), /* streaming */ 0); in ZSTD_decompressFrame()
1880 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) { in ZSTD_decompressStream()
1899 && (U64)(size_t)(oend-op) < zds->fParams.frameContentSize) { in ZSTD_decompressStream()
Dhuf_decompress.c122 static U64 HUF_DEltX1_set4(BYTE symbol, BYTE nbBits) { in HUF_DEltX1_set4()
123 U64 D4; in HUF_DEltX1_set4()
247 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
254 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
262 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
Dzstd_decompress_block.c422 U64 const add = 0x0101010101010101ull; in ZSTD_buildFSETable_body()
424 U64 sv = 0; in ZSTD_buildFSETable_body()