From e81deace1bca5d3329d41d3207fcb6e866b9d1d6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 7 Sep 2007 14:31:37 +0200 Subject: [PATCH] Added a debugging hack. --- lib/sorter/array.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/sorter/array.c b/lib/sorter/array.c index a6c217e8..d9f5f52f 100644 --- a/lib/sorter/array.c +++ b/lib/sorter/array.c @@ -24,6 +24,10 @@ asort_radix(struct asort_context *ctx, void *array, void *buffer, uns num_elts, uns shift = (hash_bits > ctx->radix_bits) ? (hash_bits - ctx->radix_bits) : 0; uns cnt[buckets]; +#if 0 + static int reported[64]; + if (!reported[hash_bits]++) +#endif DBG(">>> n=%d h=%d s=%d sw=%d", num_elts, hash_bits, shift, swapped_output); bzero(cnt, sizeof(cnt)); -- 2.39.5