From: Martin Mares Date: Sun, 2 Oct 2005 10:58:31 +0000 (+0000) Subject: Convert some nextprimes to next_table_primes. X-Git-Tag: holmes-import~723 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c1b0c15b52f4dbd0f09fccf9c56066b1493947ca;p=libucw.git Convert some nextprimes to next_table_primes. --- diff --git a/lib/hashtable.h b/lib/hashtable.h index aa73ad8f..0ef283ca 100644 --- a/lib/hashtable.h +++ b/lib/hashtable.h @@ -381,7 +381,7 @@ static inline void * P(new_bucket)(TAUC uns size) { return P(alloc)(TTC size); } static void P(alloc_table) (TAU) { - T.hash_size = nextprime(T.hash_size); + T.hash_size = next_table_prime(T.hash_size); T.ht = P(table_alloc)(TTC sizeof(void *) * T.hash_size); bzero(T.ht, sizeof(void *) * T.hash_size); if (2*T.hash_size < T.hash_hard_max)