#include #include #include #include #include static inline double tstamp(void) { struct timespec tv; clock_gettime(CLOCK_REALTIME, &tv); return tv.tv_sec + tv.tv_nsec * 1.0e-9; } void shuffle(int *array, size_t n) { if (n > 1) { size_t i; for (i = 0; i < n - 1; i++) // for (i = 0; i < n ; i++) { size_t j = i + rand() / (RAND_MAX / (n - i) + 1); // size_t j = rand()%n; int t = array[j]; array[j] = array[i]; array[i] = t; } } } void init_access_c(int access[],size_t size) { int i; for(i=0;i