aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBob Pearson <[email protected]>2012-03-23 22:02:23 +0000
committerLinus Torvalds <[email protected]>2012-03-23 23:58:37 +0000
commit9a1dbf6a29694c9d81b498019f103aee0f8b5b6c (patch)
tree1f331fa108ea29ccf06a7b5816da4dbcaa12bf2d /net/unix/af_unix.c
parentcrc32: fix mixing of endian-specific types (diff)
downloadkernel-9a1dbf6a29694c9d81b498019f103aee0f8b5b6c.tar.gz
kernel-9a1dbf6a29694c9d81b498019f103aee0f8b5b6c.zip
crc32: make CRC_*_BITS definition correspond to actual bit counts
crc32.c provides a choice of one of several algorithms for computing the LSB and LSB versions of the CRC32 checksum based on the parameters CRC_LE_BITS and CRC_BE_BITS. In the original version the values 1, 2, 4 and 8 respectively selected versions of the alrogithm that computed the crc 1, 2, 4 and 32 bits as a time. This patch series adds a new version that computes the CRC 64 bits at a time. To make things easier to understand the parameter has been reinterpreted to actually stand for the number of bits processed in each step of the algorithm so that the old value 8 has been replaced with the value 32. This also allows us to add in a widely used crc algorithm that computes the crc 8 bits at a time called the Sarwate algorithm. [[email protected]: Minor changelog tweaks] Signed-off-by: Bob Pearson <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions