Skip to content

Commit 136d029

Browse files
rakurame96Eric Biggers
authored andcommitted
Documentation/staging: Fix typo and incorrect citation in crc32.rst
In Documentation/staging/crc32.rst, below errors have been corrected: 1. Line 37: from "to being" to "to bring" 2. Line 119: Incorrect citation date: It must be August 1988 instead of August 1998 Signed-off-by: Rakuram Eswaran <rakuram.e96@gmail.com> Link: https://lore.kernel.org/r/20250820162615.6942-1-rakuram.e96@gmail.com Signed-off-by: Eric Biggers <ebiggers@kernel.org>
1 parent 5ff74f5 commit 136d029

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Documentation/staging/crc32.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ do it in the right order, matching the endianness.
3434
Just like with ordinary division, you proceed one digit (bit) at a time.
3535
Each step of the division you take one more digit (bit) of the dividend
3636
and append it to the current remainder. Then you figure out the
37-
appropriate multiple of the divisor to subtract to being the remainder
37+
appropriate multiple of the divisor to subtract to bring the remainder
3838
back into range. In binary, this is easy - it has to be either 0 or 1,
3939
and to make the XOR cancel, it's just a copy of bit 32 of the remainder.
4040

@@ -116,7 +116,7 @@ for any fractional bytes at the end.
116116
To reduce the number of conditional branches, software commonly uses
117117
the byte-at-a-time table method, popularized by Dilip V. Sarwate,
118118
"Computation of Cyclic Redundancy Checks via Table Look-Up", Comm. ACM
119-
v.31 no.8 (August 1998) p. 1008-1013.
119+
v.31 no.8 (August 1988) p. 1008-1013.
120120

121121
Here, rather than just shifting one bit of the remainder to decide
122122
in the correct multiple to subtract, we can shift a byte at a time.

0 commit comments

Comments
 (0)