Subversion Repositories SvarDOS

Rev

Rev 614 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 614 Rev 1959
Line 12... Line 12...
12
 */
12
 */
13
 
13
 
14
#ifndef CRC32_H_SENTINEL
14
#ifndef CRC32_H_SENTINEL
15
#define CRC32_H_SENTINEL
15
#define CRC32_H_SENTINEL
16
 
16
 
-
 
17
/* instead of calling crc32_init() you can just assign this value */
-
 
18
#define CRC32_INITVAL (0xFFFFFFFFlu)
-
 
19
 
17
unsigned long crc32_init(void);
20
unsigned long crc32_init(void);
18
 
21
 
19
/* This computes a 32 bit CRC of the data in the buffer, and returns the
22
/* This computes a 32 bit CRC of the data in the buffer, and returns the
20
   CRC.  The polynomial used is 0xedb88320. */
23
   CRC.  The polynomial used is 0xedb88320. */
21
void crc32_feed(unsigned long *crc32val, const unsigned char *buf, unsigned int len);
24
void crc32_feed(unsigned long *crc32val, const unsigned char *buf, unsigned int len);