String-CRC

 view release on metacpan or  search on metacpan

CRC.xs  view on Meta::CPAN


VERSIONCHECK: DISABLE

void
crc(data,bits=32)
    PREINIT:
	int data_len;
    INPUT:
	char *data = (char *)SvPV(ST(0),data_len);
	int bits;
    PPCODE:
	{
		crc_hash_t	h;
		U32		*rv;
		SV		*sv;

		if (bits < 16  || bits > 64) {
		    croak("String::CRC bits must be >= 16 and <= 64");
		}
		if (bits != crc_HashLimit) {
		    crc_HashLimit = bits;



( run in 1.093 second using v1.01-cache-2.11-cpan-5511b514fd6 )