diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-16 01:39:11 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-16 01:39:11 +0000 |
commit | 66428e7f5a40e36d0129200dcc53e9459e1d0a9b (patch) | |
tree | 23148c8f9b5f2d20672d6995c920e1d06d442874 /numsort.c | |
parent | 0a0699aba70c04e3e6c5847b47cee75025e96255 (diff) |
-- Remove getScore functions
-- Replace by making Do* functions return the results directly
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@61 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'numsort.c')
-rw-r--r-- | numsort.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -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; -} |