From f53310f5bd1e509c59b2f8047e897ae110c1066a Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 14 Nov 2008 16:25:23 +0000 Subject: Remove #defines, replace with enum git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@36 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- cleanbench.h | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'cleanbench.h') diff --git a/cleanbench.h b/cleanbench.h index 278de90..3efc5dd 100644 --- a/cleanbench.h +++ b/cleanbench.h @@ -80,19 +80,28 @@ 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 */ @@ -192,12 +201,6 @@ char *paramnames[]= { "LUMINSECONDS", "ALIGN" }; -/* -** Following array is a collection of flags indicating which -** tests to perform. -*/ -int tests_to_do[NUMTESTS]; - /* ** Buffer for holding output text. */ -- cgit v1.2.3