summaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:52 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:52 -0700
commit9c3a5830218c4e7fff23b8fc4386269db77a03a9 (patch)
tree913542049433ae44de55d22913f6bca921f2dc15 /crc32.c
parent6b8233bfe00e79134cb1b84fc49d4f750a797f79 (diff)
downloadzlib-9c3a5830218c4e7fff23b8fc4386269db77a03a9.tar.gz
zlib 1.2.2.4v1.2.2.4
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 @@
# define TBLS 1
#endif /* BYFOUR */
+/* Local functions for crc concatenation */
+local unsigned long gf2_matrix_times OF((unsigned long *mat,
+ unsigned long vec));
+local void gf2_matrix_square OF((unsigned long *square, unsigned long *mat));
+
#ifdef DYNAMIC_CRC_TABLE
local volatile int crc_table_empty = 1;
@@ -72,10 +77,6 @@ local void make_crc_table OF((void));
#ifdef MAKECRCH
local void write_table OF((FILE *, const unsigned long FAR *));
#endif /* MAKECRCH */
-local unsigned long gf2_matrix_times OF((unsigned long *mat,
- unsigned long vec));
-local void gf2_matrix_square OF((unsigned long *square, unsigned long *mat));
-
/*
Generate tables for a byte-wise 32-bit CRC calculation on the polynomial:
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.