Line data Source code
1 : /*
2 : * This code was taken from the linux kernel. The license is GPL Version 2.
3 : */
4 :
5 : #ifndef __CRC32_H__
6 : #define __CRC32_H__
7 :
8 : #include <stdint.h>
9 :
10 : /* Return a 32-bit CRC of the contents of the buffer */
11 : extern uint32_t mtd_crc32(uint32_t val, const void *ss, int len);
12 :
13 : static inline uint32_t crc32(uint32_t val, const void *ss, int len)
14 : {
15 16518163799 : return mtd_crc32(val, ss, len);
16 : }
17 :
18 : #endif /* __CRC32_H__ */
|