Lines Matching refs:hash
221 uint32_t hash; in get_array_hash() local
232 hash = get_string_hash(buffer.s); in get_array_hash()
235 hash = 0; in get_array_hash()
238 return hash; in get_array_hash()
269 zval hash; in get_object_hash() local
271 zend_call_method_with_0_params(Z_OBJ_P(obj), Z_OBJCE_P(obj), NULL, "hash", &hash); in get_object_hash()
273 zend_call_method_with_0_params(obj, Z_OBJCE_P(obj), NULL, "hash", &hash); in get_object_hash()
276 switch (Z_TYPE(hash)) { in get_object_hash()
278 return Z_LVAL(hash); in get_object_hash()
281 return get_double_hash(&hash); in get_object_hash()
284 return get_string_zval_hash(&hash); in get_object_hash()
294 OBJ_HASH_MUST_BE_SCALAR(&hash); in get_object_hash()
342 const uint32_t hash in ds_htable_lookup_bucket_by_hash() argument
351 index = DS_HTABLE_BUCKET_LOOKUP(table, hash); in ds_htable_lookup_bucket_by_hash()
357 if (DS_HTABLE_BUCKET_HASH(bucket) == hash) { in ds_htable_lookup_bucket_by_hash()
660 const uint32_t hash in ds_htable_init_next_bucket() argument
664 DS_HTABLE_BUCKET_HASH(bucket) = hash; in ds_htable_init_next_bucket()
682 const uint32_t hash = get_hash(key); in ds_htable_lookup_or_next() local
685 if ((*bucket = ds_htable_lookup_bucket_by_hash(table, key, hash))) { in ds_htable_lookup_or_next()
694 *bucket = ds_htable_init_next_bucket(table, key, NULL, hash); in ds_htable_lookup_or_next()
798 uint32_t hash = get_hash(key); in ds_htable_remove() local
799 uint32_t index = DS_HTABLE_BUCKET_LOOKUP(table, hash); in ds_htable_remove()
807 if (DS_HTABLE_BUCKET_HASH(bucket) != hash || ! ds_htable_bucket_key_match(bucket, key)) { in ds_htable_remove()
819 DS_HTABLE_BUCKET_LOOKUP(table, hash) = DS_HTABLE_BUCKET_NEXT(bucket); in ds_htable_remove()