diff options
Diffstat (limited to 'linear.c')
-rw-r--r-- | linear.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -6,7 +6,7 @@ #include <limits.h> #include <time.h> -#include "nmglobal.h" +#include "cleanbench.h" #include "randnum.h" @@ -56,6 +56,8 @@ static void lubksb(double a[][LUARRAYCOLS], static int lusolve(double a[][LUARRAYCOLS], int n, double b[LUARRAYROWS]); +static double results; + /********* ** DoLU ** ********** @@ -65,7 +67,6 @@ void DoLU(void) { const char* context = "FPU:LU"; - LUStruct* loclustruct = &global_lustruct; clock_t total_time = 0; int iterations = 0; double* a = NULL; @@ -182,7 +183,7 @@ DoLU(void) free(bbase); free(LUtempvv); - loclustruct->results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; + results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; } /****************** @@ -540,3 +541,9 @@ printf("\n"); return(1); } + +inline double +getLinearScore(void) +{ + return results; +} |