removed debug logs from last commits debugging
This commit is contained in:
parent
69adbe4ae9
commit
37ed6c4f59
7
qsort.h
7
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user