summaryrefslogtreecommitdiff
path: root/wsutil/crc32.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-08-31 12:03:18 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-08-31 12:03:18 +0000
commit1ced4079c5883f05e481779b15b27cf94d617890 (patch)
tree53600bc1291621e1ed73c3dc9f70edf74cd24773 /wsutil/crc32.h
parent582a75cb97443544d808312374b1a165fa576cc1 (diff)
downloadwireshark-1ced4079c5883f05e481779b15b27cf94d617890.tar.gz
Lookup in correct tables. Document functions.
svn path=/trunk/; revision=38819
Diffstat (limited to 'wsutil/crc32.h')
-rw-r--r--wsutil/crc32.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/wsutil/crc32.h b/wsutil/crc32.h
index d77a9d64cf..854f5fa035 100644
--- a/wsutil/crc32.h
+++ b/wsutil/crc32.h
@@ -43,8 +43,13 @@ extern "C" {
#define CRC32C(c,d) (c=(c>>8)^crc32c_table_lookup((c^(d))&0xFF))
-guint32 crc32c_table_lookup (guchar pos);
-guint32 crc32_ccitt_table_lookup (guchar pos);
+/** Lookup the crc value in the crc32c_table
+ @param pos Position in the table. */
+extern guint32 crc32c_table_lookup (guchar pos);
+
+/** Lookup the crc value in the crc32_ccitt_table
+ @param pos Position in the table. */
+extern guint32 crc32_ccitt_table_lookup (guchar pos);
/** Compute CRC32C checksum of a buffer of data.
@param buf The buffer containing the data.