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

/PHP_TRUNK/ext/opcache/
H A Dzend_persist_calc.c64 ADD_SIZE(sizeof(Bucket) * ht->nNumUsed + sizeof(zend_uint) * ht->nTableSize);
H A DZendAccelerator.c2186 ZCSG(interned_strings).nTableMask = ZCSG(interned_strings).nTableSize - 1;
2187 ZCSG(interned_strings).arData = zend_shared_alloc(ZCSG(interned_strings).nTableSize * sizeof(Bucket));
2188 ZCSG(interned_strings).arHash = (zend_uint*)zend_shared_alloc(ZCSG(interned_strings).nTableSize * sizeof(zend_uint));
2194 memset(ZCSG(interned_strings).arHash, INVALID_IDX, ZCSG(interned_strings).nTableSize * sizeof(zend_uint));
H A Dzend_accelerator_util_funcs.c111 if (nSize >= ht->nTableSize) {
133 ht->nTableSize = nSize;
134 ht->nTableMask = ht->nTableSize - 1;
339 ht->nTableSize = source->nTableSize;
357 ht->arData = (Bucket *) emalloc(ht->nTableSize * sizeof(Bucket));
382 ht->arData = (Bucket *) emalloc(ht->nTableSize * (sizeof(Bucket) + sizeof(zend_uint)));
383 ht->arHash = (zend_uint*)(ht->arData + ht->nTableSize);
384 memset(ht->arHash, INVALID_IDX, sizeof(zend_uint) * ht->nTableSize);
420 ht->nTableSize
[all...]
H A Dzend_persist.c88 ZCG(mem) = (void*)(h + ht->nTableSize);
90 memcpy(h, ht->arHash, sizeof(zend_uint) * ht->nTableSize);
125 ZCG(mem) = (void*)(h + ht->nTableSize);
127 memcpy(h, ht->arHash, sizeof(zend_uint) * ht->nTableSize);
/PHP_TRUNK/Zend/
H A Dzend_hash.c78 if ((ht)->nNumUsed >= (ht)->nTableSize) { \
87 (ht)->arData = (Bucket *) safe_pemalloc((ht)->nTableSize, sizeof(Bucket), 0, (ht)->u.flags & HASH_FLAG_PERSISTENT); \
90 (ht)->arData = (Bucket *) safe_pemalloc((ht)->nTableSize, sizeof(Bucket) + sizeof(zend_uint), 0, (ht)->u.flags & HASH_FLAG_PERSISTENT); \
91 (ht)->arHash = (zend_uint*)((ht)->arData + (ht)->nTableSize); \
92 memset((ht)->arHash, INVALID_IDX, (ht)->nTableSize * sizeof(zend_uint)); \
94 (ht)->nTableMask = (ht)->nTableSize - 1; \
108 ht->nTableSize = 0x80000000;
113 ht->nTableSize = 1 << i;
134 ht->arData = (Bucket *) safe_perealloc(ht->arData, (ht->nTableSize << 1), sizeof(Bucket), 0, ht->u.flags & HASH_FLAG_PERSISTENT);
135 ht->nTableSize
[all...]
H A Dzend_string.c51 CG(interned_strings).nTableMask = CG(interned_strings).nTableSize - 1;
52 CG(interned_strings).arData = (Bucket*) pecalloc(CG(interned_strings).nTableSize, sizeof(Bucket), 1);
53 CG(interned_strings).arHash = (zend_uint*) pecalloc(CG(interned_strings).nTableSize, sizeof(zend_uint), 1);
54 memset(CG(interned_strings).arHash, INVALID_IDX, CG(interned_strings).nTableSize * sizeof(zend_uint));
114 if (CG(interned_strings).nNumUsed >= CG(interned_strings).nTableSize) {
115 if ((CG(interned_strings).nTableSize << 1) > 0) { /* Let's double the table size */
116 Bucket *d = (Bucket *) perealloc_recoverable(CG(interned_strings).arData, (CG(interned_strings).nTableSize << 1) * sizeof(Bucket), 1);
117 zend_uint *h = (zend_uint *) perealloc_recoverable(CG(interned_strings).arHash, (CG(interned_strings).nTableSize << 1) * sizeof(zend_uint), 1);
123 CG(interned_strings).nTableSize = (CG(interned_strings).nTableSize <<
[all...]
H A Dzend_types.h169 zend_uint nTableSize; member in struct:_HashTable

Completed in 13 milliseconds