summaryrefslogtreecommitdiff
path: root/numsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'numsort.c')
-rw-r--r--numsort.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/numsort.c b/numsort.c
index 46eb432..8f94c00 100644
--- a/numsort.c
+++ b/numsort.c
@@ -29,15 +29,13 @@ static void LoadNumArrayWithRand(long *array, unsigned int num_arrays);
static inline void NumHeapSort(long *array, unsigned long bottom, unsigned long top);
static inline void NumSift(long *array, unsigned long min, unsigned long max);
-static double results;
-
/**************
** DoNumSort **
***************
** This routine performs the CPU numeric sort test.
*/
-void
+double
DoNumSort (void)
{
const char* context = "CPU:Numeric Sort";
@@ -95,7 +93,7 @@ DoNumSort (void)
free(array);
- results = (double)(iterations * num_arrays * CLOCKS_PER_SEC) / (double)total_time;
+ return (double)(iterations * num_arrays * CLOCKS_PER_SEC) / (double)total_time;
}
/***********************
@@ -221,9 +219,3 @@ NumSift(long *array, unsigned long min, unsigned long max)
}
}
}
-
-double
-getNumSortScore(void)
-{
- return results;
-}