OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b364b8
)
[PATCH] constify libcrc32c table
author
Andreas Mohr
<andi@rhlx01.fht-esslingen.de>
Sun, 25 Jun 2006 12:47:57 +0000
(
05:47
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:09 +0000
(10:01 -0700)
constify a medium-large CRC code table.
Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/libcrc32c.c
patch
|
blob
|
history
diff --git
a/lib/libcrc32c.c
b/lib/libcrc32c.c
index
52b6dc1
..
60f4680
100644
(file)
--- a/
lib/libcrc32c.c
+++ b/
lib/libcrc32c.c
@@
-88,7
+88,7
@@
crc32c_le(u32 crc, unsigned char const *p, size_t len)
* reflect output bytes = true
*/
-static u32 crc32c_table[256] = {
+static
const
u32 crc32c_table[256] = {
0x00000000L, 0xF26B8303L, 0xE13B70F7L, 0x1350F3F4L,
0xC79A971FL, 0x35F1141CL, 0x26A1E7E8L, 0xD4CA64EBL,
0x8AD958CFL, 0x78B2DBCCL, 0x6BE22838L, 0x9989AB3BL,