From 37ed6c4f591e5254e2474f6a0796e9e8bfedafc9 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Mon, 7 Apr 2025 05:05:10 +0200 Subject: [PATCH] removed debug logs from last commits debugging --- qsort.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/qsort.h b/qsort.h index 045a9f9..28839ee 100644 --- a/qsort.h +++ b/qsort.h @@ -373,14 +373,9 @@ static inline int partition_with_pivotval(uint32_t array[], int low, int high, u /* Must check if above loop found elem at all - because its guessing */ if(i != (low - 1)) { - // TODO: Remove debug stuff - printf("array:i[%d:i]: %d <---> %d :array:pivoti[%d] @ pivotval: %u && [%u..%u]\n", - i, array[i], array[pivoti], pivoti, pivotval, low, high); - /* swap the pivot element into its place */ swapit(&array[i], &array[pivoti]); - } else printf("array:i[%d:i]: %d <-/-> %d :array:pivoti[%d] @ pivotval: %u && [%u..%u]\n", - i, array[i], array[pivoti], pivoti, pivotval, low, high); + } /* return the partition point: index of pivot element */ return i;