Searched refs:hash_size (Results 1 – 8 of 8) sorted by relevance
/php-src/ext/opcache/jit/ir/ |
H A D | ir_strtab.c | 48 uint32_t hash_size = ir_strtab_hash_size(size); in ir_strtab_resize() local 49 char *data = ir_mem_malloc(hash_size * sizeof(uint32_t) + size * sizeof(ir_strtab_bucket)); in ir_strtab_resize() 53 memset(data, IR_INVALID_IDX, hash_size * sizeof(uint32_t)); in ir_strtab_resize() 54 strtab->data = data + (hash_size * sizeof(uint32_t)); in ir_strtab_resize() 55 strtab->mask = (uint32_t)(-(int32_t)hash_size); in ir_strtab_resize() 96 uint32_t hash_size = ir_strtab_hash_size(size); in ir_strtab_init() local 98 memset(data, IR_INVALID_IDX, hash_size * sizeof(uint32_t)); in ir_strtab_init() 99 strtab->data = (data + (hash_size * sizeof(uint32_t))); in ir_strtab_init() 100 strtab->mask = (uint32_t)(-(int32_t)hash_size); in ir_strtab_init() 218 uint32_t hash_size = (uint32_t)(-(int32_t)strtab->mask); in ir_strtab_free() local [all …]
|
H A D | ir.c | 1428 memset(data, -1, hash_size * sizeof(uint32_t)); 1430 tab->mask = (uint32_t)(-(int32_t)hash_size); 1453 memset(data, -1, hash_size * sizeof(uint32_t)); 1455 tab->mask = (uint32_t)(-(int32_t)hash_size); 1524 uint32_t hash_size, pos, i; local 1532 hash_size = ir_hashtab_hash_size(tab->size); 1533 memset((char*)tab->data - (hash_size * sizeof(uint32_t)), -1, hash_size * sizeof(uint32_t)); 1557 memset(data, -1, hash_size * sizeof(uint32_t)); 1559 tab->mask = (uint32_t)(-(int32_t)hash_size); 1582 memset(data, -1, hash_size * sizeof(uint32_t)); [all …]
|
H A D | ir_gcm.c | 742 uint32_t hash_size = (uint32_t)(-(int32_t)binding->mask); in ir_xlat_binding() local 744 memset((char*)binding->data - (hash_size * sizeof(uint32_t)), -1, hash_size * sizeof(uint32_t)); in ir_xlat_binding()
|
/php-src/ext/opcache/ |
H A D | zend_accelerator_hash.c | 39 void zend_accel_hash_init(zend_accel_hash *accel_hash, uint32_t hash_size) in zend_accel_hash_init() argument 44 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()
|
H A D | zend_accelerator_hash.h | 65 void zend_accel_hash_init(zend_accel_hash *accel_hash, uint32_t hash_size);
|
H A D | zend_persist_calc.c | 62 uint32_t hash_size; in zend_hash_persist_calc() local 64 hash_size = (uint32_t)(-(int32_t)ht->nTableMask); in zend_hash_persist_calc() 65 while (hash_size >> 2 > ht->nNumUsed) { in zend_hash_persist_calc() 66 hash_size >>= 1; in zend_hash_persist_calc() 68 ADD_SIZE(hash_size * sizeof(uint32_t) + ht->nNumUsed * sizeof(Bucket)); in zend_hash_persist_calc()
|
H A D | zend_persist.c | 134 uint32_t hash_size; in zend_hash_persist() local 136 hash_size = (uint32_t)(-(int32_t)ht->nTableMask); in zend_hash_persist() 137 while (hash_size >> 2 > ht->nNumUsed) { in zend_hash_persist() 138 hash_size >>= 1; in zend_hash_persist() 140 ht->nTableMask = (uint32_t)(-(int32_t)hash_size); in zend_hash_persist() 143 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE((hash_size * sizeof(uint32_t)) + (ht->nNumU… in zend_hash_persist()
|
H A D | ZendAccelerator.c | 2882 uint32_t hash_size; in zend_accel_init_shm() local 2885 hash_size = ZCG(accel_directives).interned_strings_buffer * (32 * 1024); in zend_accel_init_shm() 2886 hash_size |= (hash_size >> 1); in zend_accel_init_shm() 2887 hash_size |= (hash_size >> 2); in zend_accel_init_shm() 2888 hash_size |= (hash_size >> 4); in zend_accel_init_shm() 2889 hash_size |= (hash_size >> 8); in zend_accel_init_shm() 2890 hash_size |= (hash_size >> 16); in zend_accel_init_shm() 2893 hash_size * sizeof(zend_string_table_pos_t); in zend_accel_init_shm() 2898 ((hash_size + 1) * sizeof(zend_string_table_pos_t))) + in zend_accel_init_shm()
|
Completed in 33 milliseconds