Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xz_crc32_init

Proto:void xz_crc32_init(void)

Type:void

Parameter:Nothing

32  poly = There are multiple 16-bit CRC polynomials in common use, but this is* *the* standard CRC-32 polynomial, first popularized by Ethernet.* x^32+x^26+x^23+x^22+x^16+x^12+x^11+x^10+x^8+x^7+x^5+x^4+x^2+x^1+x^0
38  When i < 256 cycle
39  r = i
40  When j < 8 cycle r = r >> 1 ^ poly & ~((r & 1) - 1)
43  xz_crc32_table[i] = r
46  Return