diff options
Diffstat (limited to 'bitfield.c')
-rw-r--r-- | bitfield.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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) { |