diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-12 23:25:26 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-12 23:25:26 +0000 |
commit | 37438ca202a9a1f4e782f1d1803686fc6b65e918 (patch) | |
tree | 7cf856979306a32f7817b528b306539cf914e93b /assignment.c | |
parent | 7a57eeccd8ded740d88aba3ea9dcb09050983dd0 (diff) |
Move static function prototypes from nbench1.h to appropriate files
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@14 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'assignment.c')
-rw-r--r-- | assignment.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/assignment.c b/assignment.c index 29f79c8..70bdb2a 100644 --- a/assignment.c +++ b/assignment.c @@ -12,6 +12,40 @@ ** ASSIGNMENT ALGORITHM ** *************************/ +/* +** DEFINES +*/ + +#define ASSIGNROWS 101L +#define ASSIGNCOLS 101L + +/* +** TYPEDEFS +*/ +typedef struct { + union { + long *p; + long (*ap)[ASSIGNROWS][ASSIGNCOLS]; + } ptrs; +} longptr; + +/* +** PROTOTYPES +*/ +static unsigned long DoAssignIteration(long *arraybase, + unsigned long numarrays); +static void LoadAssignArrayWithRand(long *arraybase, + unsigned long numarrays); +static void LoadAssign(long arraybase[][ASSIGNCOLS]); +static void CopyToAssign(long arrayfrom[][ASSIGNCOLS], + long arrayto[][ASSIGNCOLS]); +static void Assignment(long arraybase[][ASSIGNCOLS]); +static void calc_minimum_costs(long tableau[][ASSIGNCOLS]); +static int first_assignments(long tableau[][ASSIGNCOLS], + short assignedtableau[][ASSIGNCOLS]); +static void second_assignments(long tableau[][ASSIGNCOLS], + short assignedtableau[][ASSIGNCOLS]); + /************* ** DoAssign ** ************** |