Vectors need all 32 bits to handle _really_ large apps.

This commit is contained in:
Jon Griffiths 2004-10-07 17:33:43 +00:00 committed by Alexandre Julliard
parent c4c271f1e4
commit 5ae461aa69
1 changed files with 4 additions and 2 deletions

View File

@ -49,8 +49,10 @@ char* pool_strdup(struct pool* a, const char* str);
struct vector
{
void** buckets;
unsigned elt_size : 24, shift : 8;
unsigned num_elts : 20, num_buckets : 12;
unsigned elt_size;
unsigned shift;
unsigned num_elts;
unsigned num_buckets;
};
void vector_init(struct vector* v, unsigned elt_sz, unsigned bucket_sz);