Compare sorting algorithms' performance: Difference between revisions
Content added Content deleted
(Debugged and updated D entry: heapfy is not a heapSort.) |
m (→Write timings) |
||
Line 669: | Line 669: | ||
int doublecompare( const void *a, const void *b ) |
int doublecompare( const void *a, const void *b ) |
||
{ |
{ |
||
if ( *(double *)a |
if ( *(const double *)a < *(const double *)b ) return -1; |
||
else return *(const double *)a > *(const double *)b; |
|||
} |
} |
||
int action_qsort(int size) |
int action_qsort(int size) |