]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sorter/array.h
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#dev-sorter
[libucw.git] / lib / sorter / array.h
index 076f6d33dfd0f0858a90cab7a297a7f0251ebdb5..04a27d77e79e52cfbac7db5b82b4c9a01897f573 100644 (file)
@@ -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)
 
@@ -287,7 +287,7 @@ static void Q(radix_split)(void *src_ptr, void *dest_ptr, uns num_elts, uns *ptr
 static Q(key) *Q(sort)(Q(key) *array, uns num_elts
 #ifdef ASORT_HASH
   , Q(key) *buffer, uns hash_bits
-#endif  
+#endif
   )
 {
   struct asort_context ctx = {