Lines Matching refs:_bin

77   _bin = (bucket*)_arena->Amalloc_4(sizeof(bucket)*_size);
78 memset(_bin,0,sizeof(bucket)*_size);
91 _bin[i]._cnt = 0; // Empty buckets, but leave allocated
92 // Leave _size & _bin alone, under the assumption that dictionary will
105 _bin = (bucket*)_arena->Arealloc( _bin, sizeof(bucket)*oldsize, sizeof(bucket)*_size );
106 memset( &_bin[oldsize], 0, oldsize*sizeof(bucket) );
109 bucket *b = &_bin[i]; // Handy shortcut for _bin[i]
112 bucket *nb = &_bin[i+oldsize]; // New bucket shortcut
141 _bin = (bucket*)_arena->Amalloc_4(sizeof(bucket)*_size);
142 memcpy( _bin, d._bin, sizeof(bucket)*_size );
144 if( !_bin[i]._keyvals ) continue;
145 _bin[i]._keyvals=(const void**)_arena->Amalloc_4( sizeof(void *)*_bin[i]._max*2);
146 memcpy( _bin[i]._keyvals, d._bin[i]._keyvals,_bin[i]._cnt*2*sizeof(void*));
155 _bin = (bucket*)_arena->Arealloc( _bin, sizeof(bucket)*_size, sizeof(bucket)*d._size );
156 memset( &_bin[_size], 0, (d._size-_size)*sizeof(bucket) );
160 _bin[i]._cnt = 0; // But leave bucket allocations alone
165 bucket *b = &d._bin[k]; // Shortcut to source bucket
181 bucket *b = &_bin[i]; // Handy shortcut
193 b = &_bin[i]; // Handy shortcut
214 bucket *b = &_bin[i]; // Handy shortcut
232 bucket *b = &_bin[i]; // Handy shortcut
248 bucket *b = &_bin[i]; // Handy shortcut
249 if( b->_cnt != d2._bin[i]._cnt ) return 0;
250 if( memcmp(b->_keyvals, d2._bin[i]._keyvals, b->_cnt*2*sizeof(void*) ) )
264 bucket *b = &_bin[i]; // Handy shortcut
342 _key = _d->_bin[_i]._keyvals[_j+_j];
343 _value = _d->_bin[_i]._keyvals[_j+_j+1];
348 _j = _d->_bin[_i]._cnt;
351 _key = _d->_bin[_i]._keyvals[_j+_j];
352 _value = _d->_bin[_i]._keyvals[_j+_j+1];