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

/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c2182 ZCSG(interned_strings).nTableMask = ZCSG(interned_strings).nTableSize - 1;
2183 ZCSG(interned_strings).arData = zend_shared_alloc(ZCSG(interned_strings).nTableSize * sizeof(Bucket));
2184 ZCSG(interned_strings).arHash = (uint32_t*)zend_shared_alloc(ZCSG(interned_strings).nTableSize * sizeof(uint32_t));
2190 memset(ZCSG(interned_strings).arHash, INVALID_IDX, ZCSG(interned_strings).nTableSize * sizeof(uint32_t));
H A Dzend_accelerator_util_funcs.c297 ht->nTableSize = source->nTableSize;
315 ht->arData = (Bucket *) emalloc(ht->nTableSize * sizeof(Bucket));
340 ht->arData = (Bucket *) emalloc(ht->nTableSize * (sizeof(Bucket) + sizeof(uint32_t)));
341 ht->arHash = (uint32_t*)(ht->arData + ht->nTableSize);
342 memset(ht->arHash, INVALID_IDX, sizeof(uint32_t) * ht->nTableSize);
394 ht->nTableSize = source->nTableSize;
409 ht->arData = (Bucket *) emalloc(ht->nTableSize * (sizeof(Bucket) + sizeof(uint32_t)));
410 ht->arHash = (uint32_t *)(ht->arData + ht->nTableSize);
[all...]
H A Dzend_persist.c88 ZCG(mem) = (void*)(h + ht->nTableSize);
90 memcpy(h, ht->arHash, sizeof(uint32_t) * ht->nTableSize);
125 ZCG(mem) = (void*)(h + ht->nTableSize);
127 memcpy(h, ht->arHash, sizeof(uint32_t) * ht->nTableSize);
H A Dzend_persist_calc.c63 ADD_SIZE(sizeof(Bucket) * ht->nNumUsed + sizeof(uint32_t) * ht->nTableSize);
/PHP_TRUNK/Zend/
H A Dzend_hash.c79 if ((ht)->nNumUsed >= (ht)->nTableSize) { \
89 (ht)->arData = (Bucket *) safe_pemalloc((ht)->nTableSize, sizeof(Bucket), 0, (ht)->u.flags & HASH_FLAG_PERSISTENT); \
92 (ht)->nTableMask = (ht)->nTableSize - 1; \
93 (ht)->arData = (Bucket *) safe_pemalloc((ht)->nTableSize, sizeof(Bucket) + sizeof(uint32_t), 0, (ht)->u.flags & HASH_FLAG_PERSISTENT); \
94 (ht)->arHash = (uint32_t*)((ht)->arData + (ht)->nTableSize); \
95 memset((ht)->arHash, INVALID_IDX, (ht)->nTableSize * sizeof(uint32_t)); \
113 ht->nTableSize = 0x2 << ((31 - index) ^ 0x1f);
117 ht->nTableSize = nSize;
120 ht->nTableSize = 0x2 << (__builtin_clz(nSize - 1) ^ 0x1f);
128 ht->nTableSize
[all...]
H A Dzend_string.c53 CG(interned_strings).nTableMask = CG(interned_strings).nTableSize - 1;
54 CG(interned_strings).arData = (Bucket*) pecalloc(CG(interned_strings).nTableSize, sizeof(Bucket), 1);
55 CG(interned_strings).arHash = (uint32_t*) pecalloc(CG(interned_strings).nTableSize, sizeof(uint32_t), 1);
56 memset(CG(interned_strings).arHash, INVALID_IDX, CG(interned_strings).nTableSize * sizeof(uint32_t));
108 if (CG(interned_strings).nNumUsed >= CG(interned_strings).nTableSize) {
109 if ((CG(interned_strings).nTableSize << 1) > 0) { /* Let's double the table size */
110 Bucket *d = (Bucket *) perealloc_recoverable(CG(interned_strings).arData, (CG(interned_strings).nTableSize << 1) * sizeof(Bucket), 1);
111 uint32_t *h = (uint32_t *) perealloc_recoverable(CG(interned_strings).arHash, (CG(interned_strings).nTableSize << 1) * sizeof(uint32_t), 1);
117 CG(interned_strings).nTableSize = (CG(interned_strings).nTableSize <<
[all...]
H A Dzend_types.h170 uint32_t nTableSize; member in struct:_HashTable

Completed in 18 milliseconds