/[packages]/cauldron/blt/current/SOURCES/blt2.4z-64bit-fixes.patch
ViewVC logotype

Contents of /cauldron/blt/current/SOURCES/blt2.4z-64bit-fixes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1502 - (show annotations) (download)
Sun Jan 9 02:33:34 2011 UTC (13 years, 3 months ago) by blino
File size: 891 byte(s)
imported package blt
1 --- blt2.4z/src/bltTree.c.64bit-fixes 2002-09-29 07:44:12.000000000 +0200
2 +++ blt2.4z/src/bltTree.c 2003-07-31 12:22:53.000000000 +0200
3 @@ -95,17 +95,16 @@ static Value *TreeNextValue _ANSI_ARGS_(
4 */
5
6 #define REBUILD_MULTIPLIER 3
7 +#define START_LOGSIZE 5 /* Initial hash table size is 32. */
8 +#define MAX_LIST_VALUES 20 /* Convert to hash table when node
9 + * value list gets bigger than this
10 + * many values. */
11
12 #if (SIZEOF_VOID_P == 8)
13 #define RANDOM_INDEX(i) HashOneWord(mask, downshift, i)
14 #define BITSPERWORD 64
15 #else
16
17 -#define START_LOGSIZE 5 /* Initial hash table size is 32. */
18 -#define MAX_LIST_VALUES 20 /* Convert to hash table when node
19 - * value list gets bigger than this
20 - * many values. */
21 -
22 /*
23 * The following macro takes a preliminary integer hash value and
24 * produces an index into a hash tables bucket list. The idea is

  ViewVC Help
Powered by ViewVC 1.1.30