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 /bitfield.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 'bitfield.c')
-rw-r--r-- | bitfield.c | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -33,15 +33,13 @@ static void FlipBitRun(unsigned long *bitmap, unsigned long bit_addr, unsigned long nbits); -static double results; - /************* ** DoBitops ** ************** ** Perform the bit operations test portion of the CPU ** benchmark. Returns the iterations per second. */ -void +double DoBitops(void) { const char* context = "CPU:Bitfields"; @@ -110,15 +108,10 @@ DoBitops(void) iterations += nbitops; } while (total_time < MINIMUM_SECONDS * CLOCKS_PER_SEC); - /* - ** Clean up, calculate results, and go home. - ** Also, set adjustment flag to show that we don't have - ** to do self adjusting in the future. - */ free(bitarray); free(bitoparray); - results = (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; + return (double)(iterations * CLOCKS_PER_SEC) / (double)total_time; } /************************ @@ -255,9 +248,3 @@ void ToggleBitRun(unsigned long *bitmap, /* Bitmap */ } } } - -double -getBitfieldScore(void) -{ - return results; -} |