summaryrefslogtreecommitdiff
path: root/cleanbench.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-14 16:25:23 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-14 16:25:23 +0000
commitf53310f5bd1e509c59b2f8047e897ae110c1066a (patch)
treef26fda644d1cf50b9ff14e8a3fe99cb33f0cad7d /cleanbench.h
parent85ee0ac91540be34e55f05c0b03757d6a5e3da59 (diff)
Remove #defines, replace with enum
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@36 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'cleanbench.h')
-rw-r--r--cleanbench.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/cleanbench.h b/cleanbench.h
index 278de90..3efc5dd 100644
--- a/cleanbench.h
+++ b/cleanbench.h
@@ -80,20 +80,29 @@ char *compilerversion="Have a nice day";
#define MAXPARAM 41
/* Tests-to-do flags...must coincide with test. */
-#define TF_NUMSORT 0
-#define TF_SSORT 1
-#define TF_BITOP 2
-#define TF_FPEMU 3
-#define TF_FFPU 4
-#define TF_ASSIGN 5
-#define TF_IDEA 6
-#define TF_HUFF 7
-#define TF_NNET 8
-#define TF_LU 9
+enum {
+ NUMSORT,
+ STRINGSORT,
+ BITFIELD,
+ FPEMULATION,
+ FOURIER,
+ ASSIGNMENT,
+ IDEA,
+ HUFFMAN,
+ NEURAL,
+ LINEAR
+} tests_t;
#define NUMTESTS 10
/*
+** Following array is a collection of flags indicating which
+** tests to perform.
+*/
+int tests_to_do[NUMTESTS];
+
+
+/*
** GLOBALS
*/
@@ -193,12 +202,6 @@ char *paramnames[]= {
"ALIGN" };
/*
-** Following array is a collection of flags indicating which
-** tests to perform.
-*/
-int tests_to_do[NUMTESTS];
-
-/*
** Buffer for holding output text.
*/
char buffer[BUF_SIZ];