diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-14 22:05:13 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-14 22:05:13 +0000 |
commit | 8ea0b224c71e3ebb18b8aa61102c3da79bc668a0 (patch) | |
tree | 813c913fc87aacc08fd6c5d6c42767707633711e /cleanbench.c | |
parent | 0c8398d4b960967e65418885708a096eb489a8e8 (diff) |
-- Remove useless request_secs from structs
-- Replace useless global variables global_min_ticks and global_seconds with MINIMUM_TICKS and MINIMUM_SECONDS respectively
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@41 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'cleanbench.c')
-rw-r--r-- | cleanbench.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/cleanbench.c b/cleanbench.c index b4f8ef2..2d8ed12 100644 --- a/cleanbench.c +++ b/cleanbench.c @@ -66,12 +66,6 @@ unsigned long bnumrun; /* # of runs */ int i; /* Index */ /* -** Set global parameters to default. -*/ -global_min_ticks=MINIMUM_TICKS; -global_min_seconds=MINIMUM_SECONDS; - -/* ** We presume all tests will be run unless told ** otherwise */ @@ -83,7 +77,6 @@ for (i = 0; i < NUMTESTS; i++) { ** Initialize test data structures to default ** values. */ -set_request_secs(); /* Set all request_secs fields */ global_numsortstruct.adjust=0; global_numsortstruct.arraysize=NUMARRAYSIZE; @@ -174,29 +167,6 @@ puts("* Trademarks are property of their respective holder."); return 0; } -/********************* -** set_request_secs ** -********************** -** Set everyone's "request_secs" entry to whatever -** value is in global_min_secs. This is done -** at the beginning, and possibly later if the -** user redefines global_min_secs in the command file. -*/ -static void set_request_secs(void) -{ -global_numsortstruct.request_secs=global_min_seconds; -global_strsortstruct.request_secs=global_min_seconds; -global_bitopstruct.request_secs=global_min_seconds; -global_emfloatstruct.request_secs=global_min_seconds; -global_fourierstruct.request_secs=global_min_seconds; -global_assignstruct.request_secs=global_min_seconds; -global_ideastruct.request_secs=global_min_seconds; -global_huffstruct.request_secs=global_min_seconds; -global_nnetstruct.request_secs=global_min_seconds; -global_lustruct.request_secs=global_min_seconds; -} - - /************************** ** bench_with_confidence ** *************************** |