Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xxh32_digest

Proto:uint32_t xxh32_digest(const struct xxh32_state *state)

Type:uint32_t

Parameter:

TypeParameterName
const struct xxh32_state *state
341  p = mem32
342  b_end = mem32 + memsize
346  If large_len Then
347  h32 = -************************************** Macros(v1, 1) + -************************************** Macros(v2, 7) + -************************************** Macros(v3, 12) + -************************************** Macros(v4, 18)
349  Else
350  h32 = v3 + PRIME32_5
353  h32 += total_len_32
355  When p + 4 <= b_end cycle
356  h32 += get_unaligned_le32(p) * PRIME32_3
357  h32 = -************************************** Macros(h32, 17) * PRIME32_4
358  p += 4
361  When p < b_end cycle
362  h32 += p * PRIME32_5
363  h32 = -************************************** Macros(h32, 11) * -************************************** Constants
364  p++
367  h32 ^= h32 >> 15
368  h32 *= PRIME32_2
369  h32 ^= h32 >> 13
370  h32 *= PRIME32_3
371  h32 ^= h32 >> 16
373  Return h32