Go to the source code of this file.
◆ ASSOC
◆ C_SIZE
◆ L_SIZE
◆ MAXTHREADS
◆ SIZE
◆ compar_lf()
| int compar_lf |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
Definition at line 1 of file compar.c.
1 {
2 const double *da = (
const double *)
a;
3 const double *db = (
const double *)
b;
4 if( *da < *db) return -1;
5 if( *da > *db) return 1;
6 return 0;
7}
static double a[MATRIX_SIZE][MATRIX_SIZE]
static double b[MATRIX_SIZE][MATRIX_SIZE]
◆ compar_lld()
| int compar_lld |
( |
const void * |
a, |
|
|
const void * |
b |
|
) |
| |
Definition at line 9 of file compar.c.
9 {
10 const long long int *da = (
const long long int *)
a;
11 const long long int *db = (
const long long int *)
b;
12 if( *da < *db) return -1;
13 if( *da > *db) return 1;
14 return 0;
15}
◆ elapsed()
| static double elapsed |
( |
double |
t1, |
|
|
double |
t0 |
|
) |
| |
|
inlinestatic |
Definition at line 55 of file caches.h.
55 {
56 return (
double)
t1 - (double)t0;
57}
◆ getticks()
| static double getticks |
( |
void |
| ) |
|
|
inlinestatic |
Definition at line 46 of file caches.h.
46 {
47 double ret;
49
50 gettimeofday(&tv, NULL);
51 ret = 1000*1000*(double)tv.tv_sec + (double)tv.tv_usec;
52 return ret;
53}