From 3291ba387ddc1e079a63d628b0c1f7f84db6cd1f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 10 Sep 2007 17:16:39 +0200 Subject: [PATCH] Radix sort bit width is now controlled by the configure script. --- lib/autoconf.cfg | 3 +++ lib/sorter/array.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/autoconf.cfg b/lib/autoconf.cfg index 77c7e7af..4bd16617 100644 --- a/lib/autoconf.cfg +++ b/lib/autoconf.cfg @@ -259,6 +259,9 @@ Set("PARTMAP_IS_MMAP") if IsSet("CPU_64BIT_POINTERS"); # Option for lib/mempool.c Set("POOL_IS_MMAP"); +# FIXME +Set("CONFIG_UCW_RADIX_SORTER_BITS" => 12); + # If debugging memory allocations: #LIBS+=-lefence #CDEBUG+=-DDEBUG_DMALLOC diff --git a/lib/sorter/array.h b/lib/sorter/array.h index 076f6d33..8cb05d3a 100644 --- a/lib/sorter/array.h +++ b/lib/sorter/array.h @@ -62,7 +62,7 @@ typedef ASORT_KEY_TYPE Q(key); #endif #ifndef ASORT_RADIX_BITS -#define ASORT_RADIX_BITS 12 // FIXME: Tune automatically? +#define ASORT_RADIX_BITS CONFIG_UCW_RADIX_SORTER_BITS #endif #define ASORT_RADIX_MASK ((1 << (ASORT_RADIX_BITS)) - 1) -- 2.39.2