diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-15 00:27:18 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-15 00:27:18 +0000 |
commit | 27b6cc8fd26d7d3f31308a4137436e4f455c0daf (patch) | |
tree | edcfc9fc1487416950c9d291765748bebed9c337 /nmglobal.h | |
parent | d2849063ff4bcda23eaebb04b83bc277a2321c19 (diff) |
Continue replacing struct members with local variables
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@47 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'nmglobal.h')
-rw-r--r-- | nmglobal.h | 72 |
1 files changed, 0 insertions, 72 deletions
@@ -35,84 +35,12 @@ #define MINIMUM_TICKS 60 #define MINIMUM_SECONDS 5 /* Minimum number of seconds to run each test */ -/***************** -** NUMERIC SORT ** -*****************/ -/* -** DEFINES -*/ - -/* -** The following constant, NUMNUMARRAYS (no, it is not a -** Peter Sellers joke) is the maximum number of arrays -** that can be built by the numeric sorting benchmark -** before it gives up. This maximum is dependent on the -** amount of memory in the system. -*/ -/*#define NUMNUMARRAYS 1000*/ -#define NUMNUMARRAYS 10000 - -/* -** The following constant NUMARRAYSIZE determines the -** default # of elements in each numeric array. Ordinarily -** this is something you shouldn't fool with, though as -** with most of the constants here, it is adjustable. -*/ -#define NUMARRAYSIZE 8111L - - -/* -** TYPEDEFS -*/ typedef struct { double results; /* # of sort iterations per sec */ - unsigned long arraysize; /* # of elements in array */ } SortStruct; -/**************** -** STRING SORT ** -***************** -** Note: The string sort benchmark uses the same structure to -** communicate parameters as does the numeric sort benchmark. -** (i.e., SortStruct...see above. -*/ - -/* -** DEFINES -*/ -/* -** The following constant STRINGARRAYSIZE determines -** the default # of bytes allocated to each string array. -** Though the actual size can be pre-set from the command -** file, this constant should be left unchanged. -*/ -#define STRINGARRAYSIZE 8111L - -/************************ -** BITFIELD OPERATIONS ** -************************* -*/ - -/* -** DEFINES -*/ - -/* -** Following field sets the size of the bitfield array (in longs). -*/ -#ifdef _LP64 -#define BITFARRAYSIZE 16384L -#else -#define BITFARRAYSIZE 32768L -#endif - -/* -** TYPEDEFS -*/ typedef struct { double results; /* # of bitfield ops per sec */ - unsigned long bitoparraysize; /* Total # of bitfield ops */ - unsigned long bitfieldarraysize; /* Bit field array size */ } BitOpStruct; /**************************** |