summaryrefslogtreecommitdiff
path: root/fourier.c
diff options
context:
space:
mode:
Diffstat (limited to 'fourier.c')
-rw-r--r--fourier.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/fourier.c b/fourier.c
index a031365..f7b0146 100644
--- a/fourier.c
+++ b/fourier.c
@@ -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 {