Searched refs:hash_size (Results 1 – 5 of 5) sorted by relevance
39 void zend_accel_hash_init(zend_accel_hash *accel_hash, uint32_t hash_size) in zend_accel_hash_init() argument44 if (hash_size <= prime_numbers[i]) { in zend_accel_hash_init()45 hash_size = prime_numbers[i]; in zend_accel_hash_init()52 accel_hash->max_num_entries = hash_size; in zend_accel_hash_init()
64 void zend_accel_hash_init(zend_accel_hash *accel_hash, uint32_t hash_size);
67 uint32_t hash_size; in zend_hash_persist_calc() local69 hash_size = (uint32_t)(-(int32_t)ht->nTableMask); in zend_hash_persist_calc()70 while (hash_size >> 2 > ht->nNumUsed) { in zend_hash_persist_calc()71 hash_size >>= 1; in zend_hash_persist_calc()73 ADD_SIZE(hash_size * sizeof(uint32_t) + ht->nNumUsed * sizeof(Bucket)); in zend_hash_persist_calc()
124 uint32_t hash_size; in zend_hash_persist() local126 hash_size = (uint32_t)(-(int32_t)ht->nTableMask); in zend_hash_persist()127 while (hash_size >> 2 > ht->nNumUsed) { in zend_hash_persist()128 hash_size >>= 1; in zend_hash_persist()130 ht->nTableMask = (uint32_t)(-(int32_t)hash_size); in zend_hash_persist()133 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE((hash_size * sizeof(uint32_t)) + (ht->nNumU… in zend_hash_persist()
2659 uint32_t hash_size; in zend_accel_init_shm() local2662 hash_size = ZCG(accel_directives).interned_strings_buffer * (32 * 1024); in zend_accel_init_shm()2663 hash_size |= (hash_size >> 1); in zend_accel_init_shm()2664 hash_size |= (hash_size >> 2); in zend_accel_init_shm()2665 hash_size |= (hash_size >> 4); in zend_accel_init_shm()2666 hash_size |= (hash_size >> 8); in zend_accel_init_shm()2667 hash_size |= (hash_size >> 16); in zend_accel_init_shm()2669 ZCSG(interned_strings).nTableMask = hash_size << 2; in zend_accel_init_shm()2674 ((hash_size + 1) * sizeof(uint32_t))) + in zend_accel_init_shm()
Completed in 21 milliseconds