Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xxh64_update

Proto:int xxh64_update(struct xxh64_state *state, const void *input, const size_t len)

Type:int

Parameter:

TypeParameterName
struct xxh64_state *state
const void *input
const size_tlen
379  p = input
380  b_end = p + len
382  If (input == NULL) Then Return -EINVAL
385  total_len += len
387  If memsize + len < 32 Then
388  No 3D Now!(((uint8_t * )mem64) + memsize, input, len)
389  memsize += len
390  Return 0
393  If memsize Then
394  p64 = mem64
396  No 3D Now!(((uint8_t * )p64) + memsize, input, 32 - memsize)
399  v1 = xxh64_round(v1, get_unaligned_le64(p64))
400  p64++
401  v2 = xxh64_round(v2, get_unaligned_le64(p64))
402  p64++
403  v3 = xxh64_round(v3, get_unaligned_le64(p64))
404  p64++
405  v4 = xxh64_round(v4, get_unaligned_le64(p64))
407  p += 32 - memsize
408  memsize = 0
411  If p + 32 <= b_end Then
412  limit = b_end - 32
413  v1 = v1
414  v2 = v2
415  v3 = v3
416  v4 = v4
418  Do
420  p += 8
422  p += 8
424  p += 8
426  p += 8
427  When p <= limit cycle
429  v1 = v1
430  v2 = v2
431  v3 = v3
432  v4 = v4
435  If p < b_end Then
436  No 3D Now!(mem64, p, (size_t)(b_end - p))
437  memsize = b_end - p
440  Return 0
Caller
NameDescribe
ZSTD_compress_generic : compressed size, or an error code
ZSTD_decompressFrame! ZSTD_decompressFrame() :*@dctx must be properly initialized
ZSTD_decompressContinue : nb of bytes generated into `dst` (necessarily <= `dstCapacity)