/* -*- mode: C; c-basic-offset: 4 -*- */ #ident "$Id$" #ident "Copyright (c) 2011 Tokutek Inc. All rights reserved." #include #include #include #include #include u_int64_t x1764_simple (const u_int64_t *buf, size_t len) { u_int64_t sum=0; for (size_t i=0; itv_sec-start->tv_sec) +1e-6*(end->tv_usec - start->tv_usec); } int main (int argc, char *argv[]) { int size = 1024*1024*4 + 8*4; char *data = malloc(size); for (int j=0; j<4; j++) { struct timeval start,end,end2,end3,end4; for (int i=0; i