Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pdate the hashtable entries.* only call this after finding/adding the current template* the dataN fields for the current 8 byte block must be already updated

Proto:static void update_hashtables(struct sw842_param *p)

Type:void

Parameter:

TypeParameterName
struct sw842_param *p
425  pos = in - instart
426  n8 = (pos >> 3) % (1 << I8_BITS)
427  n4 = (pos >> 2) % (1 << I4_BITS)
428  n2 = (pos >> 1) % (1 << I2_BITS)
430  replace_hash(p, 8, n8, 0)
431  replace_hash(p, 4, n4, 0)
432  replace_hash(p, 4, n4, 1)
433  replace_hash(p, 2, n2, 0)
434  replace_hash(p, 2, n2, 1)
435  replace_hash(p, 2, n2, 2)
436  replace_hash(p, 2, n2, 3)
Caller
NameDescribe
sw842_compresssw842_compress* Compress the uncompressed buffer of length @ilen at @in to the output buffer*@out, using no more than @olen bytes, using the 842 compression format