#include #include #include #include #include #include #include #include const unsigned int prime = 2000000011; unsigned int karprabin (unsigned char *datac, int N) { assert(N%4==0); unsigned int *data=(unsigned int*)datac; N=N/4; int i; unsigned int result=0; for (i=0; itv_sec-start->tv_sec) +1e-6*(end->tv_usec - start->tv_usec); } int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__unused__))) { struct timeval start, end; const int N=2<<20; unsigned char *data=malloc(N); int i; assert(data); for (i=0; i