X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fautoconf.cfg;h=b0e3c536eba25d2bcd05e30a24f69f12a8d62815;hb=e371dcc1cd2857036374dd9597705faed0427006;hp=77c7e7af84f7e864dcff329d0a1602f6509ac044;hpb=55c249f666faddb7d4e999d8a8e3ab66bccfae96;p=libucw.git diff --git a/lib/autoconf.cfg b/lib/autoconf.cfg index 77c7e7af..b0e3c536 100644 --- a/lib/autoconf.cfg +++ b/lib/autoconf.cfg @@ -259,6 +259,15 @@ Set("PARTMAP_IS_MMAP") if IsSet("CPU_64BIT_POINTERS"); # Option for lib/mempool.c Set("POOL_IS_MMAP"); +# Guess optimal bit width of the radix-sorter +if (Get("CPU_ARCH") eq "default" || Get("CPU_ARCH") =~ /^i[345]86$/) { + # This should be safe everywhere + Set("CONFIG_UCW_RADIX_SORTER_BITS" => 10); +} else { + # Use this on modern CPU's + Set("CONFIG_UCW_RADIX_SORTER_BITS" => 12); +} + # If debugging memory allocations: #LIBS+=-lefence #CDEBUG+=-DDEBUG_DMALLOC