Searched refs:setsize (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/ |
D | random.py | 323 setsize = 21 # size of a small set minus size of an empty list 325 setsize += 4 ** _ceil(_log(k * 3, 4)) # table size for big sets 326 if n <= setsize:
|
/external/python/cpython2/Lib/ |
D | random.py | 329 setsize = 21 # size of a small set minus size of an empty list 331 setsize += 4 ** _ceil(_log(k * 3, 4)) # table size for big sets 332 if n <= setsize or hasattr(population, "keys"):
|
/external/python/cpython2/Modules/ |
D | almodule.c | 1609 int setsize = 32, qualsize = 0, nvals, i; in al_QueryValues() local 1624 setsize = 32; in al_QueryValues() 1625 return_set = PyMem_NEW(ALvalue, setsize); in al_QueryValues() 1632 nvals = alQueryValues(resource, param, return_set, setsize, quals, qualsize); in al_QueryValues() 1635 if (nvals > setsize) { in al_QueryValues() 1637 setsize = nvals; in al_QueryValues() 1638 PyMem_RESIZE(return_set, ALvalue, setsize); in al_QueryValues()
|
/external/python/cpython3/Modules/ |
D | posixmodule.c | 5748 size_t setsize; in os_sched_setaffinity_impl() local 5757 setsize = CPU_ALLOC_SIZE(ncpus); in os_sched_setaffinity_impl() 5763 CPU_ZERO_S(setsize, cpu_set); in os_sched_setaffinity_impl() 5804 memcpy(newmask, cpu_set, setsize); in os_sched_setaffinity_impl() 5806 setsize = newsetsize; in os_sched_setaffinity_impl() 5810 CPU_SET_S(cpu, setsize, cpu_set); in os_sched_setaffinity_impl() 5814 if (sched_setaffinity(pid, setsize, cpu_set)) { in os_sched_setaffinity_impl() 5844 size_t setsize; in os_sched_getaffinity_impl() local 5850 setsize = CPU_ALLOC_SIZE(ncpus); in os_sched_getaffinity_impl() 5854 if (sched_getaffinity(pid, setsize, mask) == 0) in os_sched_getaffinity_impl() [all …]
|