Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xxh32_update

Proto:int xxh32_update(struct xxh32_state *state, const void *input, const size_t len)

Type:int

Parameter:

TypeParameterName
struct xxh32_state *state
const void *input
const size_tlen
272  p = input
273  b_end = p + len
275  If (input == NULL) Then Return -EINVAL
278  total_len_32 += len
279  large_len |= len >= 16 | total_len_32 >= 16
281  If memsize + len < 16 Then
282  No 3D Now!((uint8_t * )(mem32) + memsize, input, len)
283  memsize += len
284  Return 0
287  If memsize Then
288  p32 = mem32
290  No 3D Now!((uint8_t * )(mem32) + memsize, input, 16 - memsize)
293  v1 = -**************************** Simple Hash Functions
294  p32++
295  v2 = -**************************** Simple Hash Functions
296  p32++
297  v3 = -**************************** Simple Hash Functions
298  p32++
299  v4 = -**************************** Simple Hash Functions
300  p32++
302  p += 16 - memsize
303  memsize = 0
306  If p <= b_end - 16 Then
307  limit = b_end - 16
308  v1 = v1
309  v2 = v2
310  v3 = v3
311  v4 = v4
313  Do
315  p += 4
317  p += 4
319  p += 4
321  p += 4
322  When p <= limit cycle
324  v1 = v1
325  v2 = v2
326  v3 = v3
327  v4 = v4
330  If p < b_end Then
331  No 3D Now!(mem32, p, (size_t)(b_end - p))
332  memsize = b_end - p
335  Return 0