/third_party/ltp/libs/libltpvdso/ |
H A D | parse_vdso.c | 49 ELF(Word) nbucket, nchain; 182 vdso_info.nbucket = get_hash_val(hash, 0); in vdso_init_from_sysinfo_ehdr() 185 vdso_info.chain = get_hash_ptr(hash, vdso_info.nbucket + 2); in vdso_init_from_sysinfo_ehdr() 237 elf_hash((const void*)name) % vdso_info.nbucket); in vdso_sym()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/ |
H A D | vdso.rs | 34 nbucket: u32, 78 nbucket: 0, in init_from_sysinfo_ehdr() 184 vdso.nbucket = *hash.add(0); in init_from_sysinfo_ehdr() 187 vdso.chain = hash.add(vdso.nbucket as usize + 2); in init_from_sysinfo_ehdr() 260 let mut chain = *self.bucket.add((name_hash % self.nbucket) as usize);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
H A D | ELFTypes.h | 511 Elf_Word nbucket; 515 return ArrayRef<Elf_Word>(&nbucket + 2, &nbucket + 2 + nbucket); 519 return ArrayRef<Elf_Word>(&nbucket + 2 + nbucket, 520 &nbucket + 2 + nbucket + nchain);
|
/third_party/elfio/elfio/ |
H A D | elfio_symbols.hpp | 301 Elf_Word nbucket = *(const Elf_Word*)hash_section->get_data(); in hash_lookup() local 302 nbucket = convertor( nbucket ); in hash_lookup() 309 ( 2 + val % nbucket ) * sizeof( Elf_Word ) ); in hash_lookup() 315 ( 2 + nbucket + y ) * sizeof( Elf_Word ) ); in hash_lookup()
|
/third_party/elfutils/src/ |
H A D | elfcmp.c | 842 const size_t nbucket = hash1[0]; \ in hash_content_equivalent() 844 if (data1->d_size != (2 + nbucket + nchain) * sizeof hash1[0] \ in hash_content_equivalent() 845 || hash2[0] != nbucket || hash2[1] != nchain) \ in hash_content_equivalent() 849 const Hash_Word *const chain1 = &bucket1[nbucket]; \ in hash_content_equivalent() 851 const Hash_Word *const chain2 = &bucket2[nbucket]; \ in hash_content_equivalent() 857 for (size_t i = 0; i < nbucket; ++i) \ in hash_content_equivalent()
|
H A D | strip.c | 2285 Elf32_Word nbucket = bucket[0]; in handle_elf() local 2286 uint64_t used_buf = ((2ULL + nchain + nbucket) in handle_elf() 2294 Elf32_Word *chain = bucket + nbucket; in handle_elf() 2297 size_t n_size = ((2 + symd->d_size / elsize + nbucket) in handle_elf() 2305 (symd->d_size / elsize + nbucket) in handle_elf() 2317 elf_assert (name != NULL && nbucket != 0); in handle_elf() 2318 size_t hidx = elf_hash (name) % nbucket; in handle_elf() 2344 Elf64_Xword nbucket = bucket[0]; in handle_elf() local 2348 && maxwords - 2 >= nbucket in handle_elf() 2349 && maxwords - 2 - nbucket > in handle_elf() [all...] |
H A D | elflint.c | 2026 Elf32_Word nbucket = ((Elf32_Word *) data->d_buf)[0]; in check_sysv_hash() local 2029 if (shdr->sh_size < (2ULL + nbucket + nchain) * sizeof (Elf32_Word)) in check_sysv_hash() 2034 (long int) ((2 + nbucket + nchain) * sizeof (Elf32_Word))); in check_sysv_hash() 2054 for (cnt = 2; cnt < 2 + nbucket; ++cnt) in check_sysv_hash() 2064 for (; cnt < 2 + nbucket + nchain; ++cnt) in check_sysv_hash() 2071 idx, section_name (ebl, idx), cnt - 2 - nbucket); in check_sysv_hash() 2080 Elf64_Xword nbucket = ((Elf64_Xword *) data->d_buf)[0]; in check_sysv_hash64() local 2085 || maxwords - 2 < nbucket in check_sysv_hash64() 2086 || maxwords - 2 - nbucket < nchain) in check_sysv_hash64() 2091 (long int) ((2 + nbucket in check_sysv_hash64() 2493 Elf32_Word nbucket = hasharr[0]; compare_hash_gnu_hash() local 2528 Elf64_Xword nbucket = hasharr[0]; compare_hash_gnu_hash() local [all...] |
H A D | readelf.c | 3235 uint_fast32_t maxlength, Elf32_Word nbucket, in print_hash_info() 3240 for (Elf32_Word cnt = 0; cnt < nbucket; ++cnt) in print_hash_info() 3259 nbucket), in print_hash_info() 3262 (int) nbucket, in print_hash_info() 3272 if (likely (nbucket > 0)) in print_hash_info() 3280 counts[0], (counts[0] * 100.0) / nbucket); in print_hash_info() 3288 (int) cnt, counts[cnt], (counts[cnt] * 100.0) / nbucket, in print_hash_info() 3303 (double) nzero_counts / (double) nbucket); in print_hash_info() 3330 Elf32_Word nbucket = ((Elf32_Word *) data->d_buf)[0]; in handle_sysv_hash() local 3333 uint64_t used_buf = (2ULL + nchain + nbucket) * sizeo in handle_sysv_hash() 3234 print_hash_info(Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx, uint_fast32_t maxlength, Elf32_Word nbucket, uint_fast32_t nsyms, uint32_t *lengths, const char *extrastr) print_hash_info() argument 3394 Elf64_Xword nbucket = ((Elf64_Xword *) data->d_buf)[0]; handle_sysv_hash64() local 3461 Elf32_Word nbucket = ((Elf32_Word *) data->d_buf)[0]; handle_gnu_hash() local [all...] |
H A D | unstrip.c | 515 const size_t nbucket = old_hash[0]; \ in adjust_relocs() 518 const Hash_Word *const old_chain = &old_bucket[nbucket]; \ in adjust_relocs() 519 if (onent != 2 + nbucket + nchain) \ in adjust_relocs() 522 const size_t nent = 2 + nbucket + nsym; \ in adjust_relocs() 525 Hash_Word *const new_chain = &new_bucket[nbucket]; \ in adjust_relocs() 527 new_hash[0] = nbucket; \ in adjust_relocs() 529 for (size_t i = 0; i < nbucket; ++i) \ in adjust_relocs()
|
/third_party/f2fs-tools/fsck/ |
H A D | dir.c | 113 unsigned int nbucket, nblock; in find_in_level() local 127 nbucket = dir_buckets(level, dir_level); in find_in_level() 130 bidx = dir_block_index(level, dir_level, le32_to_cpu(namehash) % nbucket); in find_in_level() 226 int nbucket, nblock, bidx, block; in f2fs_add_link() local 261 nbucket = dir_buckets(level, dir_level); in f2fs_add_link() 263 bidx = dir_block_index(level, dir_level, le32_to_cpu(dentry_hash) % nbucket); in f2fs_add_link()
|
H A D | fsck.c | 1498 unsigned int nbucket, nblock; in f2fs_check_dirent_position() local 1504 nbucket = dir_buckets(level, dir_level); in f2fs_check_dirent_position() 1508 le32_to_cpu(dentry->hash_code) % nbucket); in f2fs_check_dirent_position()
|