summaryrefslogtreecommitdiff
path: root/bitfield.c
diff options
context:
space:
mode:
Diffstat (limited to 'bitfield.c')
-rw-r--r--bitfield.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/bitfield.c b/bitfield.c
index 9a74b97..fcab172 100644
--- a/bitfield.c
+++ b/bitfield.c
@@ -37,17 +37,15 @@ DoBitops(void)
{
const char* context = "CPU:Bitfields";
BitOpStruct* locbitopstruct = &global_bitopstruct;
- clock_t total_time = 0;
- int iterations = 0;
unsigned long* bitarraybase = NULL;
unsigned long* bitoparraybase = NULL;
+ clock_t total_time = 0;
+ int iterations = 0;
unsigned long nbitops;
+ static int is_adjusted = FALSE;
- /*
- ** See if we need to run adjustment code.
- */
- if (locbitopstruct->adjust == FALSE) {
- locbitopstruct->adjust = TRUE;
+ if (is_adjusted == FALSE) {
+ is_adjusted = TRUE;
bitarraybase = realloc(bitarraybase, locbitopstruct->bitfieldarraysize * sizeof(unsigned long));
if (!bitarraybase) {