Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
693 user890104 1
/*
2
 * CRC32 functions
3
 * Based on public domain implementation by Finn Yannick Jacobs.
4
 */
5
 
6
#ifndef _CRC32_H_
7
#define _CRC32_H_
8
 
9
#include <stdint.h>
10
 
11
#define CRC32_DEFAULT_SEED 0xffffffff
12
 
13
/* Calculate crc32.
14
 * Standard seed is 0xffffffff or 0.
15
 * Some implementations xor result with 0xffffffff after calculation.
16
 */
17
uint32_t crc32 (void *data, unsigned int len, uint32_t seed);
18
 
19
/* Calculate crc32table */
20
void crc32_init();
21
 
22
#endif