1 /* crc32.c -- Calculate CRC-32 for GZIP + PNG
2  */
3 
4 #ifndef CRC32_H
5 #define CRC32_H 1
6 
7 #ifdef __GNUC__
8 #ifndef __clang__
9 #pragma interface
10 #endif
11 #endif
12 
13 #include "config2.h"
14 
15 #define CRC32_INITIAL ((unsigned PTS_INT32_T)0)
16 /** Usage:
17  * unsigned PTS_INT32_T crc=CRC32_INITIAL;
18  * crc=crc32(crc, "alma", 4);
19  * crc=crc32(crc, "korte", 5);
20  * ...
21  * putchar( (char)(crc & 0xff) );
22  * putchar( (char)((crc >> 8) & 0xff) );
23  * putchar( (char)((crc >> 16) & 0xff) );
24  * putchar( (char)((crc >> 24) & 0xff) );
25  */
26 extern
27 #ifdef __cplusplus
28 "C"
29 #endif
30 unsigned PTS_INT32_T crc32 _((unsigned PTS_INT32_T oldcrc, char PTS_const *s, slen_t slen));
31 
32 #endif /* CRC32_H */
33