Searched refs:nTableSize (Results 1 - 7 of 7) sorted by relevance

/PHP_TRUNK/Zend/
H A Dzend_string.c57 CG(interned_strings).nTableMask = CG(interned_strings).nTableSize - 1;
58 CG(interned_strings).arBuckets = (Bucket **) pecalloc(CG(interned_strings).nTableSize, sizeof(Bucket *), CG(interned_strings).persistent);
157 if (CG(interned_strings).nNumOfElements > CG(interned_strings).nTableSize) {
158 if ((CG(interned_strings).nTableSize << 1) > 0) { /* Let's double the table size */
159 Bucket **t = (Bucket **) perealloc_recoverable(CG(interned_strings).arBuckets, (CG(interned_strings).nTableSize << 1) * sizeof(Bucket *), CG(interned_strings).persistent);
164 CG(interned_strings).nTableSize = (CG(interned_strings).nTableSize << 1);
165 CG(interned_strings).nTableMask = CG(interned_strings).nTableSize - 1;
201 for (i = 0; i < CG(interned_strings).nTableSize; i++) {
H A Dzend_hash.h68 uint nTableSize; member in struct:_hashtable
H A Dzend_hash.c101 if ((ht)->nNumOfElements > (ht)->nTableSize) { \
143 (ht)->arBuckets = (Bucket **) pecalloc((ht)->nTableSize, sizeof(Bucket *), (ht)->persistent); \
144 (ht)->nTableMask = (ht)->nTableSize - 1; \
203 ht->nTableSize = 0x80000000;
208 ht->nTableSize = 1 << i;
453 if ((ht->nTableSize << 1) > 0) { /* Let's double the table size */
454 t = (Bucket **) perealloc(ht->arBuckets, (ht->nTableSize << 1) * sizeof(Bucket *), ht->persistent);
457 ht->nTableSize = (ht->nTableSize << 1);
458 ht->nTableMask = ht->nTableSize
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c282 for (i = 0; i < ZCSG(interned_strings).nTableSize; i++) {
301 ZCSG(interned_strings_saved_state).arBuckets = (Bucket**)zend_shared_alloc(ZCSG(interned_strings).nTableSize * sizeof(Bucket *));
305 memcpy(ZCSG(interned_strings_saved_state).arBuckets, ZCSG(interned_strings).arBuckets, ZCSG(interned_strings).nTableSize * sizeof(Bucket *));
2478 ZCSG(interned_strings).nTableMask = ZCSG(interned_strings).nTableSize - 1;
2479 ZCSG(interned_strings).arBuckets = zend_shared_alloc(ZCSG(interned_strings).nTableSize * sizeof(Bucket *));
H A Dzend_persist_calc.c88 ADD_DUP_SIZE(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize);
91 ADD_DUP_SIZE(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize);
H A Dzend_persist.c128 for (i = 0; i < ht->nTableSize; i++) {
134 zend_accel_store(ht->arBuckets, sizeof(Bucket*) * ht->nTableSize);
H A Dzend_accelerator_util_funcs.c110 if (nSize >= ht->nTableSize) {
123 ht->nTableSize = nSize;
124 ht->nTableMask = ht->nTableSize - 1;
329 ht->nTableSize = source->nTableSize;
352 ht->arBuckets = (Bucket **) ecalloc(ht->nTableSize, sizeof(Bucket *));
457 ht->nTableSize = source->nTableSize;
479 ht->arBuckets = (Bucket **) ecalloc(ht->nTableSize, sizeof(Bucket *));
568 ht->nTableSize
[all...]

Completed in 13 milliseconds