Update of /cvsroot/blob/blob/src/lib
In directory usw-pr-cvs1:/tmp/cvs-serv3765/src/lib
Modified Files:
crc32.c
Log Message:
Put the copyright attributions the right way. Also add some comments and
fix a typo.
Index: crc32.c
===================================================================
RCS file: /cvsroot/blob/blob/src/lib/crc32.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- crc32.c 2002/01/20 23:16:18 1.1
+++ crc32.c 2002/01/20 23:26:46 1.2
@@ -1,9 +1,9 @@
/*
* crc32.c: calculate CRC32
*
- * Copyright (C) 1995-2001 Russell King <rm...@ar...>
- * based on linux/drivers/net/am79c961a.c
* Copyright (C) 2002 Erik Mouw <J.A...@it...>
+ * based on linux/drivers/net/am79c961a.c
+ * Copyright (C) 1995-2001 Russell King <rm...@ar...>
*
* $Id$
*
@@ -76,6 +76,11 @@
+/* calculate CRC32 on len bytes pointed by data. the usual
+ * initialisation is to put 0xffffffff in val, but by supplying a
+ * previous CRC value into it it can be used to calculate the CRC on
+ * streams of data
+ */
u32 crc32(u32 val, const void *data, int len)
{
u32 crc = val;
|