From 27b6cc8fd26d7d3f31308a4137436e4f455c0daf Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 15 Nov 2008 00:27:18 +0000 Subject: Continue replacing struct members with local variables git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@47 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- nmglobal.h | 72 -------------------------------------------------------------- 1 file changed, 72 deletions(-) (limited to 'nmglobal.h') diff --git a/nmglobal.h b/nmglobal.h index 2f1018d..90fcf63 100644 --- a/nmglobal.h +++ b/nmglobal.h @@ -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; /**************************** -- cgit v1.2.3