From 66428e7f5a40e36d0129200dcc53e9459e1d0a9b Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 16 Nov 2008 01:39:11 +0000 Subject: -- 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 --- fpemulation.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'fpemulation.c') diff --git a/fpemulation.c b/fpemulation.c index bd4b320..a99949d 100644 --- a/fpemulation.c +++ b/fpemulation.c @@ -31,15 +31,13 @@ static clock_t DoEmFloatIteration(InternalFPF *abase, InternalFPF *bbase, Intern unsigned long loops); static void SetupCPUEmFloatArrays(InternalFPF *abase, InternalFPF *bbase); -static double results; - /************** ** DoEmFloat ** *************** ** Perform the floating-point emulation routines portion of the ** CPU benchmark. Returns the operations per second. */ -void +double DoEmFloat(void) { const char* context = "CPU:Floating Emulation"; @@ -119,7 +117,7 @@ DoEmFloat(void) free(bbase); free(cbase); - results = (double)(iterations * loops * CLOCKS_PER_SEC) / (double)total_time; + return (double)(iterations * loops * CLOCKS_PER_SEC) / (double)total_time; } /*********************** @@ -207,9 +205,3 @@ SetupCPUEmFloatArrays(InternalFPF *abase, InternalFPF *bbase) DivideInternalFPF(&locFPF1,&locFPF2,bbase+i); } } - -double -getEmFloatScore(void) -{ - return results; -} -- cgit v1.2.3