summaryrefslogtreecommitdiff
path: root/fourier.c
diff options
context:
space:
mode:
Diffstat (limited to 'fourier.c')
-rw-r--r--fourier.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/fourier.c b/fourier.c
index d45f784..a4505e0 100644
--- a/fourier.c
+++ b/fourier.c
@@ -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;
+}