diff options
Diffstat (limited to 'numsort.c')
-rw-r--r-- | numsort.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -38,7 +38,6 @@ static void NumSift(long *array, unsigned long min, unsigned long max); double DoNumSort (void) { - const char* context = "CPU:Numeric Sort"; long* array = NULL; clock_t total_time = 0; int iterations = 0; @@ -58,10 +57,6 @@ DoNumSort (void) ++num_arrays; array = realloc(array, num_arrays * ARRAY_SIZE * sizeof(long)); - if (!array) { - fprintf(stderr, "Error in %s, could not allocate memory. Exitting...\n", context); - exit(1); - } /* ** Do an iteration of the numeric sort. If the @@ -72,10 +67,6 @@ DoNumSort (void) } while (DoNumSortIteration(array, num_arrays) <= MINIMUM_TICKS); } else { array = malloc(num_arrays * ARRAY_SIZE * sizeof(long)); - if (!array) { - fprintf(stderr, "Error in %s, could not allocate memory. Exitting...\n", context); - exit(1); - } } /* |