Home
last modified time | relevance | path

Searched refs:load_factor (Results 1 – 4 of 4) sorted by relevance

/Zephyr-Core-3.5.0/tests/lib/hash_map/src/
Dload_factor.c15 uint32_t load_factor; in ZTEST() local
23 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() local
40 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 …]
/Zephyr-Core-3.5.0/include/zephyr/sys/
Dhash_map_api.h201 uint8_t load_factor; member
216 .max_size = (size_t)_max_size, .load_factor = (uint8_t)_load_factor, \
Dhash_map.h352 (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()
/Zephyr-Core-3.5.0/lib/hash/
Dhash_map_cxx.cpp76 umap->max_load_factor(map->config->load_factor / 100.0f); in sys_hashmap_cxx_insert()