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 /assignment.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 'assignment.c')
-rw-r--r-- | assignment.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/assignment.c b/assignment.c index a4f4d03..6d653ca 100644 --- a/assignment.c +++ b/assignment.c @@ -49,8 +49,6 @@ static int first_assignments(long tableau[][ASSIGNCOLS], static void second_assignments(long tableau[][ASSIGNCOLS], short assignedtableau[][ASSIGNCOLS]); -static double results; - /************* ** DoAssign ** ************** @@ -69,7 +67,7 @@ static double results; ** probably non-optimal constructs. ** */ -void +double DoAssign(void) { const char* context = "CPU:Assignment"; @@ -121,7 +119,7 @@ DoAssign(void) free(array); - results = (double)(iterations * CLOCKS_PER_SEC *num_arrays) / (double)total_time; + return (double)(iterations * CLOCKS_PER_SEC *num_arrays) / (double)total_time; } @@ -521,11 +519,4 @@ for(i=0;i<ASSIGNROWS;i++) if(linescol[j]==1) tableau[i][j]+=smallest; -return; -} - -double -getAssignmentScore(void) -{ - return results; } |