Lines Matching refs:nmagic
109 uint32_t nmagic[MAGIC_SETS]; member
454 ml->nmagic = map->nmagic[idx]; in add_mlist()
1017 size_t nmagic __attribute__((__unused__))) in file_magic_strength() argument
1028 for (i = 1; m[i].cont_level != 0 && i < MIN(nmagic, 3); i++) { in file_magic_strength()
1100 for (magindex = 0; magindex < ml->nmagic; magindex++) { in apprentice_list()
1104 while (magindex + 1 < ml->nmagic && in apprentice_list()
1115 for (; magindex + 1 < ml->nmagic && in apprentice_list()
1128 file_magic_strength(m, ml->nmagic - magindex), in apprentice_list()
1557 &map->magic[j], &map->nmagic[j]) == -1) { in apprentice_load()
3316 map->nmagic[i] = swap4(ptr[i + 2]); in apprentice_map()
3318 map->nmagic[i] = ptr[i + 2]; in apprentice_map()
3320 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
3321 nentries += map->nmagic[i]; in apprentice_map()
3330 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map()
3354 static const size_t nm = sizeof(*map->nmagic) * MAGIC_SETS; in apprentice_compile()
3381 memcpy(hdr.h + 2, map->nmagic, nm); in apprentice_compile()
3389 len = m * map->nmagic[i]; in apprentice_compile()
3458 byteswap(struct magic *magic, uint32_t nmagic) argument
3461 for (i = 0; i < nmagic; i++)
3660 for (i = 0; i < ml->nmagic; i++) {
3665 for (j = i + 1; j < ml->nmagic; j++)
3668 v->nmagic = j - i;