PAPI 7.1.0.0
Loading...
Searching...
No Matches
compar.c File Reference

Go to the source code of this file.

Functions

int compar_lf (const void *a, const void *b)
 
int compar_lld (const void *a, const void *b)
 

Function Documentation

◆ 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]
Definition: libmsr_basic.c:38
static double b[MATRIX_SIZE][MATRIX_SIZE]
Definition: libmsr_basic.c:39
Here is the caller graph for this function:

◆ 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}