Dead
[official-gcc.git] / gomp-20050608-branch / libstdc++-v3 / include / ext / pb_assoc / detail / resize_policy / ht_prime_size_policy_imp.hpp
blobb4dfb4e0fb5b8a4bdfbc4f689f1f0984610688b1
1 // -*- C++ -*-
3 // Copyright (C) 2005 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 2, or (at your option)
9 // any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 // USA.
21 // As a special exception, you may use this file as part of a free software
22 // library without restriction. Specifically, if other files instantiate
23 // templates or use macros or inline functions from this file, or you compile
24 // this file and link it with other files to produce an executable, this
25 // file does not by itself cause the resulting executable to be covered by
26 // the GNU General Public License. This exception does not however
27 // invalidate any other reasons why the executable file might be covered by
28 // the GNU General Public License.
30 // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
32 // Permission to use, copy, modify, sell, and distribute this software
33 // is hereby granted without fee, provided that the above copyright
34 // notice appears in all copies, and that both that copyright notice and
35 // this permission notice appear in supporting documentation. None of
36 // the above authors, nor IBM Haifa Research Laboratories, make any
37 // representation about the suitability of this software for any
38 // purpose. It is provided "as is" without express or implied warranty.
40 /**
41 * @file ht_prime_size_policy_imp.hpp
42 * Contains implementation details for ht_prime_size_policy.
45 #ifndef HT_PRIME_SIZE_POLICY_IMP_HPP
46 #define HT_PRIME_SIZE_POLICY_IMP_HPP
48 namespace pb_assoc
51 namespace detail
54 enum
56 num_distinct_sizes = 28
59 static const size_t s_a_sizes[num_distinct_sizes] =
61 /* Dealing cards... */
62 /* 0 */ 53ul,
63 /* 1 */ 97ul,
64 /* 2 */ 193ul,
65 /* 3 */ 389ul,
66 /* 4 */ 769ul,
67 /* 5 */ 1543ul,
68 /* 6 */ 3079ul,
69 /* 7 */ 6151ul,
70 /* 8 */ 12289ul,
71 /* 9 */ 24593ul,
72 /* 10 */ 49157ul,
73 /* 11 */ 98317ul,
74 /* 12 */ 196613ul,
75 /* 13 */ 393241ul,
76 /* 14 */ 786433ul,
77 /* 15 */ 1572869ul,
78 /* 16 */ 3145739ul,
79 /* 17 */ 6291469ul,
80 /* 18 */ 12582917ul,
81 /* 19 */ 25165843ul,
82 /* 20 */ 50331653ul,
83 /* 21 */ 100663319ul,
84 /* 22 */ 201326611ul,
85 /* 23 */ 402653189ul,
86 /* 24 */ 805306457ul,
87 /* 25 */ 1610612741,
88 /* 26 */ 3221225473ul,
89 /* 27 */ 4294967291ul
90 /* Pot's good, let's play */
93 } // namespace detail
95 } // namespace pb_assoc
97 #endif // #ifndef HT_PRIME_SIZE_POLICY_IMP_HPP