summaryrefslogtreecommitdiff
path: root/linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'linear.c')
-rw-r--r--linear.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/linear.c b/linear.c
index 32d5af6..c54c7f4 100644
--- a/linear.c
+++ b/linear.c
@@ -57,14 +57,12 @@ static void lubksb(double a[][LUARRAYCOLS],
static int lusolve(double a[][LUARRAYCOLS],
int n, double b[LUARRAYROWS]);
-static double results;
-
/*********
** DoLU **
**********
** Perform the LU decomposition benchmark.
*/
-void
+double
DoLU(void)
{
const char* context = "FPU:LU";
@@ -184,7 +182,7 @@ DoLU(void)
free(bbase);
free(LUtempvv);
- results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time;
+ return (double)(iterations * CLOCKS_PER_SEC) / (double)total_time;
}
/******************
@@ -542,9 +540,3 @@ printf("\n");
return(1);
}
-
-double
-getLinearScore(void)
-{
- return results;
-}