 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
19 float* r1 = (
float*) x;
20 float* r2 = (
float*) y;
21 if( *r1 < *r2 )
return -1;
33 float* r1 = (
float*) x;
34 float* r2 = (
float*) y;
35 if( *r1 > *r2 )
return -1;
47 double* r1 = (
double*) x;
48 double* r2 = (
double*) y;
49 if( *r1 < *r2 )
return -1;
61 double* r1 = (
double*) x;
62 double* r2 = (
double*) y;
63 if( *r1 > *r2 )
return -1;
78 if ( r1->
f < r2->
f )
return -1;
79 else if ( r1->
f > r2->
f )
return 1;
94 if ( r1->
f > r2->
f )
return -1;
95 else if ( r1->
f < r2->
f )
return 1;
Header file for utility functions for use in qsort calls.
int QsortSmallToLargeDouble(const void *x, const void *y)
Utility function for sorting double precision floating point values in qsort.
int QsortLargeToSmallDouble(const void *x, const void *y)
Utility function for sorting double precision floating point values in qsort.
int QsortSmallToLargeIntFloat(const void *x, const void *y)
Utility function for sorting int float pairs in qsort.
int QsortSmallToLargeFloat(const void *x, const void *y)
Utility function for sorting floating point values in qsort.
int QsortLargeToSmallIntFloat(const void *x, const void *y)
Utility function for sorting int float pairs in qsort.
int QsortLargeToSmallFloat(const void *x, const void *y)
Utility function for sorting floating point values in qsort.