Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crc32.c Create Date:2022-07-28 06:55:46
Last Modify:2020-03-16 11:24:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mplements slicing-by-4 or slicing-by-8 algorithm

Proto:static inline u32 __pure crc32_body(u32 crc, unsigned char const *buf, size_t len, const u32 (*tab)[256])

Type:u32

Parameter:

TypeParameterName
u32crc
unsigned char const *buf
size_tlen
const u32 (*tab
78  t0 = tab[0] , t1 = tab[1] , t2 = tab[2] , t3 = tab[3]
85  If Value for the false possibility is greater at compile time((long)buf & 3 && len) Then
86  Do
88  When --len && buf & 3 cycle
92  rem_len = len & 3
93  len = len >> 2
99  b = buf
104  When len cycle
106  q = crc ^ *++b
108  crc = DO_CRC4
115  len = rem_len
117  If len Then
118  p = b + 1 - 1
123  Do
125  When --len cycle
128  Return crc
Caller
NameDescribe
crc32_le_genericrc32_le_generic() - Calculate bitwise little-endian Ethernet AUTODIN II* CRC32/CRC32C*@crc: seed value for computation
crc32_be_genericrc32_be_generic() - Calculate bitwise big-endian Ethernet AUTODIN II CRC32*@crc: seed value for computation