summaryrefslogtreecommitdiff
path: root/linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'linear.c')
-rw-r--r--linear.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/linear.c b/linear.c
index b69080c..3216378 100644
--- a/linear.c
+++ b/linear.c
@@ -22,15 +22,18 @@
*/
/*
-** DEFINES
+** ARRAY_MAX
+**
+** This sets the upper limit on the number of arrays
+** that the benchmark will attempt to build before
+** flagging an error. It is not a critical constant, and
+** may be increased if your system has the horsepower.
*/
+#define ARRAY_MAX 10000
#define LUARRAYROWS 101L
#define LUARRAYCOLS 101L
-/*
-** TYPEDEFS
-*/
typedef struct
{ union
{ double *p;
@@ -38,14 +41,8 @@ typedef struct
} ptrs;
} LUdblptr;
-/*
-** GLOBALS
-*/
-double *LUtempvv;
+double *LUtempvv; /* FIXME: really? */
-/*
-** PROTOTYPES
-*/
static clock_t DoLUIteration(double *a, double *b,
double *abase, double *bbase,
unsigned long num_arrays);
@@ -112,7 +109,7 @@ DoLU(void)
if (is_adjusted == FALSE) {
is_adjusted = TRUE;
- for(i=1;i<=MAXLUARRAYS;i++)
+ for(i=1;i<=ARRAY_MAX;i++)
{
abase = realloc(abase, sizeof(double) * LUARRAYCOLS*LUARRAYROWS*(i+1));
if (!abase) {