Home
last modified time | relevance | path

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

/lib/zstd/common/
A Dmem.h40 typedef uint64_t U64; typedef
54 MEM_STATIC U64 MEM_read64(const void* memPtr);
65 MEM_STATIC U64 MEM_readLE64(const void* memPtr);
85 MEM_STATIC U64 MEM_swap64(U64 in);
122 MEM_STATIC U64 MEM_read64(const void *memPtr) in MEM_read64()
124 return get_unaligned((const U64 *)memPtr); in MEM_read64()
144 put_unaligned(value, (U64 *)memPtr); in MEM_write64()
203 MEM_writeLE64(memPtr, (U64)val); in MEM_writeLEST()
241 MEM_writeBE64(memPtr, (U64)val); in MEM_writeBEST()
249 MEM_STATIC U64 MEM_swap64(U64 in) in MEM_swap64()
[all …]
A Dbits.h66 MEM_STATIC unsigned ZSTD_countTrailingZeros64(U64 val) in ZSTD_countTrailingZeros64()
84 MEM_STATIC unsigned ZSTD_countLeadingZeros64(U64 val) in ZSTD_countLeadingZeros64()
106 return ZSTD_countTrailingZeros64((U64)val) >> 3; in ZSTD_NbCommonBytes()
112 return ZSTD_countLeadingZeros64((U64)val) >> 3; in ZSTD_NbCommonBytes()
130 U64 ZSTD_rotateRight_U64(U64 const value, U32 count) { in ZSTD_rotateRight_U64()
133 return (value >> count) | (U64)(value << ((0U - count) & 0x3F)); in ZSTD_rotateRight_U64()
A Dfse_decompress.c102 { U64 const add = 0x0101010101010101ull; in FSE_buildDTable_internal()
104 U64 sv = 0; in FSE_buildDTable_internal()
A Dhuf.h35 #define HUF_WORKSPACE_SIZE_U64 (HUF_WORKSPACE_SIZE / sizeof(U64))
A Dbitstream.h303 return (bitContainer >> (start & regMask)) & ((((U64)1) << nbBits) - 1); in BIT_getMiddleBits()
A Dfse.h264 …Value, tableLog) (((maxSymbolValue + 2) + (1ull << (tableLog)))/2 + sizeof(U64)/sizeof(U32) /* add…
/lib/zstd/compress/
A Dzstd_preSplit.c94 static U64 abs64(S64 s64) { return (U64)((s64 < 0) ? -s64 : s64); } in abs64()
96 static U64 fpDistance(const Fingerprint* fp1, const Fingerprint* fp2, unsigned hashLog) in fpDistance()
98 U64 distance = 0; in fpDistance()
118 { U64 p50 = (U64)ref->nbEvents * (U64)newfp->nbEvents; in compareFingerprints()
119 U64 deviation = fpDistance(ref, newfp, hashLog); in compareFingerprints()
120 U64 threshold = p50 * (U64)(THRESHOLD_BASE + penalty) / THRESHOLD_PENALTY_RATE; in compareFingerprints()
220 { U64 const distFromBegin = fpDistance(&fpstats->pastEvents, middleEvents, 8); in ZSTD_splitBlock_fromBorders()
221 U64 const distFromEnd = fpDistance(&fpstats->newEvents, middleEvents, 8); in ZSTD_splitBlock_fromBorders()
222 U64 const minDistance = SEGMENT_SIZE * SEGMENT_SIZE / 3; in ZSTD_splitBlock_fromBorders()
A Dzstd_compress_internal.h900 static const U64 prime5bytes = 889523592379ULL;
901 static size_t ZSTD_hash5(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-40)) … in ZSTD_hash5()
905 static const U64 prime6bytes = 227718039650203ULL;
906 static size_t ZSTD_hash6(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-48)) … in ZSTD_hash6()
910 static const U64 prime7bytes = 58295818150454627ULL;
911 static size_t ZSTD_hash7(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u << (64-56)) … in ZSTD_hash7()
916 static size_t ZSTD_hash8(U64 u, U32 h, U64 s) { assert(h <= 64); return (size_t)((((u) * prime8byte… in ZSTD_hash8()
960 static U64 ZSTD_ipow(U64 base, U64 exponent) in ZSTD_ipow()
962 U64 power = 1; in ZSTD_ipow()
976 static U64 ZSTD_rollingHash_append(U64 hash, void const* buf, size_t size) in ZSTD_rollingHash_append()
[all …]
A Dfse_compress.c122 { U64 const add = 0x0101010101010101ull; in FSE_buildCTable_wksp()
124 U64 sv = 0; in FSE_buildCTable_wksp()
447 { U64 const vStepLog = 62 - tableLog; in FSE_normalizeM2()
448 U64 const mid = (1ULL << (vStepLog-1)) - 1; in FSE_normalizeM2()
449U64 const rStep = ZSTD_div64((((U64)1<<vStepLog) * ToDistribute) + mid, (U32)total); /* scale on… in FSE_normalizeM2()
450 U64 tmpTotal = mid; in FSE_normalizeM2()
453 U64 const end = tmpTotal + (count[s] * rStep); in FSE_normalizeM2()
478 U64 const scale = 62 - tableLog; in FSE_normalizeCount()
479 U64 const step = ZSTD_div64((U64)1<<62, (U32)total); /* <== here, one division ! */ in FSE_normalizeCount()
480 U64 const vStep = 1ULL<<(scale-20); in FSE_normalizeCount()
[all …]
A Dzstd_ldm.c25 U64 rolling;
26 U64 stopMask;
54 state->stopMask = (((U64)1 << hashRateLog) - 1) << (maxBitsInMask - hashRateLog); in ZSTD_ldm_gear_init()
57 state->stopMask = ((U64)1 << hashRateLog) - 1; in ZSTD_ldm_gear_init()
69 U64 hash = state->rolling; in ZSTD_ldm_gear_reset()
102 U64 hash, mask; in ZSTD_ldm_gear_feed()
312 U64 const xxhash = xxh64(split, minMatchLength, 0); in ZSTD_ldm_fillHashTable()
392 U64 const xxhash = xxh64(split, minMatchLength, 0); in ZSTD_ldm_generateSequences_internal()
A Dzstd_ldm_geartab.h18 static UNUSED_ATTR const U64 ZSTD_ldm_gearTab[256] = {
A Dzstd_compress.c1375 static U32 ZSTD_dictAndWindowLog(U32 windowLog, U64 srcSize, U64 dictSize) in ZSTD_dictAndWindowLog()
1385 U64 const windowSize = 1ULL << windowLog; in ZSTD_dictAndWindowLog()
1415 const U64 minSrcSize = 513; /* (1<<9) + 1 */ in ZSTD_adjustCParams_internal()
1498 … U32 const dictAndWindowLog = ZSTD_dictAndWindowLog(cPar.windowLog, (U64)srcSize, (U64)dictSize); in ZSTD_adjustCParams_internal()
1645 const U64 pledgedSrcSize, in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1897 static U64 ZSTD_bitmix(U64 val, U64 len) { in ZSTD_bitmix()
2254 U64 pledgedSrcSize, in ZSTD_resetCCtx_byAttachingCDict()
2331 U64 pledgedSrcSize, in ZSTD_resetCCtx_byCopyingCDict()
2416 U64 pledgedSrcSize, in ZSTD_resetCCtx_usingCDict()
2442 U64 pledgedSrcSize, in ZSTD_copyCCtx_internal()
[all …]
A Dzstd_lazy.c785 typedef U64 ZSTD_VecMask; /* Clarifies when we are interacting with a U64 representing a mask of …
870 U64 const hashSalt) in ZSTD_row_nextCachedHash()
1003 …return ZSTD_rotateRight_U64((U64)matches[3] << 48 | (U64)matches[2] << 32 | (U64)matches[1] << 16 … in ZSTD_row_getSSEMask()
1021 const U64 matches = vget_lane_u64(vreinterpret_u64_u8(res), 0); in ZSTD_row_getNEONMask()
1034 const U64 matches = vget_lane_u64(vreinterpret_u64_u8(res), 0) ; in ZSTD_row_getNEONMask()
1049 const U64 matches = vget_lane_u64(vreinterpret_u64_u8(t4), 0); in ZSTD_row_getNEONMask()
1119 return ZSTD_rotateRight_U64((U64)matches, headGrouped); in ZSTD_row_getMatchMask()
1169 const U64 hashSalt = ms->hashSalt; in ZSTD_RowFindBestMatch()
/lib/lz4/
A Dlz4defs.h55 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()
A Dlz4_compress.c60 U64 sequence, in LZ4_hash5()
68 static const U64 prime5bytes = 889523592379ULL; in LZ4_hash5()
72 static const U64 prime8bytes = 11400714785074694791ULL; in LZ4_hash5()
/lib/zstd/decompress/
A Dzstd_decompress_internal.h77 #define ZSTD_BUILD_FSE_TABLE_WKSP_SIZE (sizeof(S16) * (MaxSeq + 1) + (1u << MaxFSELog) + sizeof(U64
141 U64 processedCSize;
142 U64 decodedSize;
A Dhuf_decompress.c173 U64 bits[4];
238 args->ip[0] = args->iend[1] - sizeof(U64); in HUF_DecompressFastArgs_init()
239 args->ip[1] = args->iend[2] - sizeof(U64); in HUF_DecompressFastArgs_init()
240 args->ip[2] = args->iend[3] - sizeof(U64); in HUF_DecompressFastArgs_init()
332 static U64 HUF_DEltX1_set4(BYTE symbol, BYTE nbBits) { in HUF_DEltX1_set4()
333 U64 D4; in HUF_DEltX1_set4()
335 D4 = (U64)((symbol << 8) + nbBits); in HUF_DEltX1_set4()
337 D4 = (U64)(symbol + (nbBits << 8)); in HUF_DEltX1_set4()
720 U64 bits[4]; in HUF_decompress4X1_usingDTable_internal_fast_c_loop()
992 return (U64)DElt + ((U64)DElt << 32); in HUF_buildDEltX2U64()
[all …]
A Dzstd_decompress.c91 const U64 hash = xxh64(&dictID, sizeof(U32), 0); in ZSTD_DDictHashSet_getIndex()
492 U64 windowSize = 0; in ZSTD_getFrameHeader_advanced()
494 U64 frameContentSize = ZSTD_CONTENTSIZE_UNKNOWN; in ZSTD_getFrameHeader_advanced()
896 static void ZSTD_DCtx_trace_end(ZSTD_DCtx const* dctx, U64 uncompressedSize, U64 compressedSize, in… in ZSTD_DCtx_trace_end()
1002 RETURN_ERROR_IF((U64)(op-ostart) != dctx->fParams.frameContentSize, in ZSTD_decompressFrame()
1016 ZSTD_DCtx_trace_end(dctx, (U64)(op-ostart), (U64)(ip-istart), /* streaming */ 0); in ZSTD_decompressFrame()
2081 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) { in ZSTD_decompressStream()
2101 && (U64)(size_t)(oend-op) < zds->fParams.frameContentSize) { in ZSTD_decompressStream()
A Dzstd_decompress_block.c540 U64 const add = 0x0101010101010101ull; in ZSTD_buildFSETable_body()
542 U64 sv = 0; in ZSTD_buildFSETable_body()

Completed in 68 milliseconds