diff options
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; -} |