Compare sorting algorithms' performance: Difference between revisions

Content added Content deleted
(Debugged and updated D entry: heapfy is not a heapSort.)
Line 669: Line 669:
int doublecompare( const void *a, const void *b )
int doublecompare( const void *a, const void *b )
{
{
if ( *(double *)a == *(double *)b ) return 0;
if ( *(const double *)a < *(const double *)b ) return -1;
if ( *(double *)a < *(double *)b ) return -1; else return 1;
else return *(const double *)a > *(const double *)b;
}
}
int action_qsort(int size)
int action_qsort(int size)