diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-16 01:39:11 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-16 01:39:11 +0000 |
commit | 66428e7f5a40e36d0129200dcc53e9459e1d0a9b (patch) | |
tree | 23148c8f9b5f2d20672d6995c920e1d06d442874 /fourier.c | |
parent | 0a0699aba70c04e3e6c5847b47cee75025e96255 (diff) |
-- Remove getScore functions
-- Replace by making Do* functions return the results directly
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@61 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'fourier.c')
-rw-r--r-- | fourier.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -27,8 +27,6 @@ static double thefunction(double x, double omega_n, int select); -static double results; - /************** ** DoFourier ** *************** @@ -37,7 +35,7 @@ static double results; ** fourier coefficients of the function (x+1)^x defined ** on the interval 0,2. */ -void +double DoFourier(void) { const char* context = "FPU:Transcendental"; @@ -107,7 +105,7 @@ DoFourier(void) free(abase); free(bbase); - results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; + return (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; } /************************ @@ -241,9 +239,3 @@ switch(select) */ return(0.0); } - -double -getFourierScore(void) -{ - return results; -} |