Lines Matching refs:h
22 uint32_t h = 0; in elf_hash() local
26 h = (h << 4) + *p++; in elf_hash()
27 g = h & 0xf0000000; in elf_hash()
29 h ^= g >> 24; in elf_hash()
30 h &= ~g; in elf_hash()
32 return h; in elf_hash()
38 uint32_t h = 5381; in gnu_hash() local
41 h = (h << 5) + h + *p++; in gnu_hash()
43 return h; in gnu_hash()
141 struct gnu_hashtab *h = elf->gnu_hashtab; in resolve_sym_helper() local
151 uint32_t *bloom = (void *)(h + 1); in resolve_sym_helper()
152 uint32_t word = bloom[(hash / 32) % h->bloom_size]; in resolve_sym_helper()
154 BIT32((hash >> h->bloom_shift) % 32); in resolve_sym_helper()
158 bucket = bloom + h->bloom_size; in resolve_sym_helper()
160 uint64_t *bloom = (void *)(h + 1); in resolve_sym_helper()
161 uint64_t word = bloom[(hash / 64) % h->bloom_size]; in resolve_sym_helper()
163 BIT64((hash >> h->bloom_shift) % 64); in resolve_sym_helper()
167 bucket = (uint32_t *)(bloom + h->bloom_size); in resolve_sym_helper()
169 chain = bucket + h->nbuckets; in resolve_sym_helper()
171 n = bucket[hash % h->nbuckets]; in resolve_sym_helper()
172 if (n < h->symoffset) in resolve_sym_helper()
177 size_t idx = n - h->symoffset; in resolve_sym_helper()