diff options
Diffstat (limited to 'fourier.c')
-rw-r--r-- | fourier.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" @@ -26,6 +26,8 @@ static double thefunction(double x, double omega_n, int select); +static double results; + /************** ** DoFourier ** *************** @@ -38,7 +40,6 @@ void DoFourier(void) { const char* context = "FPU:Transcendental"; - FourierStruct* locfourierstruct = &global_fourierstruct; double* abase = NULL; double* bbase = NULL; clock_t total_time = 0; @@ -105,7 +106,7 @@ DoFourier(void) free(abase); free(bbase); - locfourierstruct->results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; + results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; } /************************ @@ -239,3 +240,9 @@ switch(select) */ return(0.0); } + +inline double +getFourierScore(void) +{ + return results; +} |