Home
last modified time | relevance | path

Searched refs:nslots (Results 1 – 8 of 8) sorted by relevance

/external/strace/
Dnumber_set.c43 unsigned int nslots; member
62 if (new_nslots <= set->nslots) in reallocate_number_set()
65 memset(set->vec + set->nslots, 0, in reallocate_number_set()
66 sizeof(*set->vec) * (new_nslots - set->nslots)); in reallocate_number_set()
67 set->nslots = new_nslots; in reallocate_number_set()
74 return !(set && (set[idx].nslots || set[idx].not)); in number_set_array_is_empty()
80 return set && ((number / BITS_PER_SLOT < set->nslots) in is_number_in_set()
88 return set && ((number / BITS_PER_SLOT < set[idx].nslots) in is_number_in_set_array()
112 if (set[i].nslots) in clear_number_set_array()
114 sizeof(*set[i].vec) * set[i].nslots); in clear_number_set_array()
/external/elfutils/lib/
Dfixedsizehash.h77 size_t nslots; in CONCAT() local
117 result->nslots = nelems; in CONCAT()
136 size_t idx = 1 + hval % htab->nslots; in CONCAT()
148 hash = 1 + hval % (htab->nslots - 2); in CONCAT()
153 idx = htab->nslots + idx - hash; in CONCAT()
/external/selinux/libsepol/cil/src/
Dcil_symtab.c161 symtab->nslots = size; in cil_complex_symtab_init()
272 for (i = 0; i < symtab->nslots; i++) { in cil_complex_symtab_destroy()
284 symtab->nslots = 0; in cil_complex_symtab_destroy()
Dcil_symtab.h69 uint32_t nslots; member
/external/python/cpython2/Objects/
Dtypeobject.c2025 _unicode_to_string(PyObject *slots, Py_ssize_t nslots) in _unicode_to_string() argument
2031 for (i = 0; i < nslots; i++) { in _unicode_to_string()
2099 Py_ssize_t i, nbases, nslots, slotoffset; in type_new() local
2184 nslots = 0; in type_new()
2212 nslots = PyTuple_GET_SIZE(slots); in type_new()
2213 if (nslots > 0 && base->tp_itemsize != 0) { in type_new()
2225 tmp = _unicode_to_string(slots, nslots); in type_new()
2234 for (i = 0; i < nslots; i++) { in type_new()
2266 newslots = PyList_New(nslots - add_dict - add_weak); in type_new()
2269 for (i = j = 0; i < nslots; i++) { in type_new()
[all …]
/external/python/cpython3/Objects/
Dtypeobject.c2293 Py_ssize_t i, nbases, nslots, slotoffset, name_size; in type_new() local
2365 nslots = 0; in type_new()
2391 nslots = PyTuple_GET_SIZE(slots); in type_new()
2392 if (nslots > 0 && base->tp_itemsize != 0) { in type_new()
2401 for (i = 0; i < nslots; i++) { in type_new()
2431 newslots = PyList_New(nslots - add_dict - add_weak); in type_new()
2434 for (i = j = 0; i < nslots; i++) { in type_new()
2456 assert(j == nslots - add_dict - add_weak); in type_new()
2457 nslots = j; in type_new()
2495 type = (PyTypeObject *)metatype->tp_alloc(metatype, nslots); in type_new()
[all …]
/external/e2fsprogs/contrib/
Dfsstress.c128 int nslots; member
573 flist[i].nslots = 0; in main()
590 if (ftp->nfiles == ftp->nslots) { in add_to_flist()
591 ftp->nslots += FLIST_SLOT_INCR; in add_to_flist()
592 ftp->fents = realloc(ftp->fents, ftp->nslots * sizeof(fent_t)); in add_to_flist()
/external/ltp/testcases/kernel/fs/fsstress/
Dfsstress.c101 int nslots; member
546 flist[i].nslots = 0; in main()
563 if (ftp->nfiles == ftp->nslots) { in add_to_flist()
564 ftp->nslots += FLIST_SLOT_INCR; in add_to_flist()
565 ftp->fents = realloc(ftp->fents, ftp->nslots * sizeof(fent_t)); in add_to_flist()