Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\xxhash.c Create Date:2022-07-28 06:56:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xxh64_digest

Proto:uint64_t xxh64_digest(const struct xxh64_state *state)

Type:uint64_t

Parameter:

TypeParameterName
const struct xxh64_state *state
446  p = mem64
447  b_end = mem64 + memsize
451  If total_len >= 32 Then
452  v1 = v1
453  v2 = v2
454  v3 = v3
455  v4 = v4
457  h64 = xxh_rotl64(v1, 1) + xxh_rotl64(v2, 7) + xxh_rotl64(v3, 12) + xxh_rotl64(v4, 18)
459  h64 = xxh64_merge_round(h64, v1)
460  h64 = xxh64_merge_round(h64, v2)
461  h64 = xxh64_merge_round(h64, v3)
462  h64 = xxh64_merge_round(h64, v4)
463  Else
464  h64 = v3 + PRIME64_5
467  h64 += total_len
469  When p + 8 <= b_end cycle
470  k1 = xxh64_round(0, get_unaligned_le64(p))
472  h64 ^= k1
473  h64 = xxh_rotl64(h64, 27) * PRIME64_1 + PRIME64_4
474  p += 8
477  If p + 4 <= b_end Then
478  h64 ^= get_unaligned_le32(p) * PRIME64_1
479  h64 = xxh_rotl64(h64, 23) * PRIME64_2 + PRIME64_3
480  p += 4
483  When p < b_end cycle
484  h64 ^= p * PRIME64_5
485  h64 = xxh_rotl64(h64, 11) * PRIME64_1
486  p++
489  h64 ^= h64 >> 33
490  h64 *= PRIME64_2
491  h64 ^= h64 >> 29
492  h64 *= PRIME64_3
493  h64 ^= h64 >> 32
495  Return h64
Caller
NameDescribe
ZSTD_writeEpilogue : nb of bytes written into dst (or an error code)
ZSTD_decompressFrame! ZSTD_decompressFrame() :*@dctx must be properly initialized
ZSTD_decompressContinue : nb of bytes generated into `dst` (necessarily <= `dstCapacity)