From 9027c95aba77aa51f6c8777e918e6c4db3063169 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 27 Mar 2009 22:01:15 +0000 Subject: [PATCH] hashtable.h (_S_num_primes): Change to 29. * include/backward/hashtable.h (_S_num_primes): Change to 29. (__stl_prime_list): Add 5 at the start of the list. From-SVN: r145132 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/backward/hashtable.h | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 23d43c1349e..0c51edb7aaf 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2009-03-27 Ian Lance Taylor + + * include/backward/hashtable.h (_S_num_primes): Change to 29. + (__stl_prime_list): Add 5 at the start of the list. + 2009-03-25 Edward Smith-Rowland <3dw4rd@verizon.net> * include/std/fstream (basic_filebuf<>::open(const std::string&, diff --git a/libstdc++-v3/include/backward/hashtable.h b/libstdc++-v3/include/backward/hashtable.h index 62bc5bc5193..c0981ee8565 100644 --- a/libstdc++-v3/include/backward/hashtable.h +++ b/libstdc++-v3/include/backward/hashtable.h @@ -210,16 +210,16 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) }; // Note: assumes long is at least 32 bits. - enum { _S_num_primes = 28 }; + enum { _S_num_primes = 29 }; static const unsigned long __stl_prime_list[_S_num_primes] = { - 53ul, 97ul, 193ul, 389ul, 769ul, - 1543ul, 3079ul, 6151ul, 12289ul, 24593ul, - 49157ul, 98317ul, 196613ul, 393241ul, 786433ul, - 1572869ul, 3145739ul, 6291469ul, 12582917ul, 25165843ul, - 50331653ul, 100663319ul, 201326611ul, 402653189ul, 805306457ul, - 1610612741ul, 3221225473ul, 4294967291ul + 5ul, 53ul, 97ul, 193ul, 389ul, + 769ul, 1543ul, 3079ul, 6151ul, 12289ul, + 24593ul, 49157ul, 98317ul, 196613ul, 393241ul, + 786433ul, 1572869ul, 3145739ul, 6291469ul, 12582917ul, + 25165843ul, 50331653ul, 100663319ul, 201326611ul, 402653189ul, + 805306457ul, 1610612741ul, 3221225473ul, 4294967291ul }; inline unsigned long