String-CRC32
view release on metacpan or search on metacpan
VERSIONCHECK: DISABLE
PROTOTYPES: DISABLE
U32
crc32(data, ...)
char *data = NO_INIT
PREINIT:
U32 crcinit = 0;
STRLEN data_len;
PPCODE:
int sv_type;
IO *io;
SV *sv;
U32 rv = 0;
{
#ifdef GENTABLE
crcgen();
#endif /* GENTABLE */
/* Horst Fickenscher <horst_fickenscher@sepp.de> mailed me that it
could be useful to supply an initial value other than 0, e.g.
( run in 0.941 second using v1.01-cache-2.11-cpan-5511b514fd6 )