aboutsummaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/crc32.c b/crc32.c
index 9b1de04..f658a9e 100644
--- a/crc32.c
+++ b/crc32.c
@@ -64,6 +64,11 @@
64# define TBLS 1 64# define TBLS 1
65#endif /* BYFOUR */ 65#endif /* BYFOUR */
66 66
67/* Local functions for crc concatenation */
68local unsigned long gf2_matrix_times OF((unsigned long *mat,
69 unsigned long vec));
70local void gf2_matrix_square OF((unsigned long *square, unsigned long *mat));
71
67#ifdef DYNAMIC_CRC_TABLE 72#ifdef DYNAMIC_CRC_TABLE
68 73
69local volatile int crc_table_empty = 1; 74local volatile int crc_table_empty = 1;
@@ -72,10 +77,6 @@ local void make_crc_table OF((void));
72#ifdef MAKECRCH 77#ifdef MAKECRCH
73 local void write_table OF((FILE *, const unsigned long FAR *)); 78 local void write_table OF((FILE *, const unsigned long FAR *));
74#endif /* MAKECRCH */ 79#endif /* MAKECRCH */
75local unsigned long gf2_matrix_times OF((unsigned long *mat,
76 unsigned long vec));
77local void gf2_matrix_square OF((unsigned long *square, unsigned long *mat));
78
79/* 80/*
80 Generate tables for a byte-wise 32-bit CRC calculation on the polynomial: 81 Generate tables for a byte-wise 32-bit CRC calculation on the polynomial:
81 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. 82 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.