Subversion Repositories freemyipod

Rev

Blame | Last modification | View Log | RSS feed

/*
 * CRC32 functions
 * Based on public domain implementation by Finn Yannick Jacobs.
 */

#ifndef _CRC32_H_
#define _CRC32_H_

#include <stdint.h>

#define CRC32_DEFAULT_SEED 0xffffffff

/* Calculate crc32.
 * Standard seed is 0xffffffff or 0.
 * Some implementations xor result with 0xffffffff after calculation.
 */
uint32_t crc32 (void *data, unsigned int len, uint32_t seed);

/* Calculate crc32table */
void crc32_init();

#endif