FastLED 3.9.15
Loading...
Searching...
No Matches

◆ next_power_of_two()

template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
static size_t fl::HashMap< Key, T, Hash, KeyEqual, INLINED_COUNT >::next_power_of_two ( size_t n)
inlinestaticprivate

Definition at line 326 of file hash_map.h.

326 {
327 size_t p = 1;
328 while (p < n)
329 p <<= 1;
330 return p;
331 }

Referenced by fl::HashMap< Key, T, Hash, KeyEqual >::rehash().

+ Here is the caller graph for this function: