diff options
Diffstat (limited to 'fourier.c')
-rw-r--r-- | fourier.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -39,16 +39,14 @@ DoFourier(void) { const char* context = "FPU:Transcendental"; FourierStruct* locfourierstruct = &global_fourierstruct; - clock_t total_time = 0; - int iterations = 0; double* abase = NULL; double* bbase = NULL; + clock_t total_time = 0; + int iterations = 0; + static int is_adjusted = FALSE; - /* - ** See if we need to do self-adjustment code. - */ - if (locfourierstruct->adjust == FALSE) { - locfourierstruct->adjust = TRUE; + if (is_adjusted == FALSE) { + is_adjusted = TRUE; locfourierstruct->arraysize = 100L; /* Start at 100 elements */ while (1) { |