diff options
Diffstat (limited to 'fourier.c')
-rw-r--r-- | fourier.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -43,7 +43,6 @@ static double thefunction(double x, double DoFourier(void) { - const char* context = "FPU:Transcendental"; double* abase = NULL; double* bbase = NULL; clock_t total_time = 0; @@ -58,17 +57,8 @@ DoFourier(void) array_size += 50; abase = realloc(abase, array_size * sizeof(double)); - if (!abase) { - fprintf(stderr, "Error in %s, could not allocate memory. Exitting...\n", context); - exit(1); - } bbase = realloc(bbase, array_size * sizeof(double)); - if (!bbase) { - fprintf(stderr, "Error in %s, could not allocate memory. Exitting...\n", context); - free(abase); - exit(1); - } /* ** Do an iteration of the tests. If the elapsed time is @@ -82,17 +72,8 @@ DoFourier(void) ** arrays, and go. */ abase = malloc(array_size * sizeof(double)); - if (!abase) { - fprintf(stderr, "Error in %s, could not allocate memory. Exitting...\n", context); - exit(1); - } bbase = malloc(array_size * sizeof(double)); - if (!bbase) { - fprintf(stderr, "Error in %s, could not allocate memory. Exitting...\n", context); - free(abase); - exit(1); - } } do { |