Searched refs:load_factor (Results 1 – 4 of 4) sorted by relevance
15 uint32_t load_factor; in ZTEST() local23 load_factor = sys_hashmap_load_factor(&map); in ZTEST()24 zassert_true(load_factor > 0 && load_factor <= SYS_HASHMAP_DEFAULT_LOAD_FACTOR); in ZTEST()29 load_factor = sys_hashmap_load_factor(&map); in ZTEST()30 zassert_true(load_factor <= SYS_HASHMAP_DEFAULT_LOAD_FACTOR); in ZTEST()37 uint32_t load_factor; in ZTEST() local40 zassert_equal(hmap->config->load_factor, CUSTOM_LOAD_FACTOR); in ZTEST()48 load_factor = sys_hashmap_load_factor(hmap); in ZTEST()49 zassert_true(load_factor > 0 && load_factor <= CUSTOM_LOAD_FACTOR); in ZTEST()54 load_factor = sys_hashmap_load_factor(hmap); in ZTEST()[all …]
201 uint8_t load_factor; member216 .max_size = (size_t)_max_size, .load_factor = (uint8_t)_load_factor, \
352 (size + num_reserved) * 100 / data->n_buckets > map->config->load_factor); in sys_hashmap_should_rehash()354 shrink && (n_buckets == 0 || (size * 100) / n_buckets <= map->config->load_factor); in sys_hashmap_should_rehash()
76 umap->max_load_factor(map->config->load_factor / 100.0f); in sys_hashmap_cxx_insert()