MCPcopy Create free account
hub / github.com/FastLED/FastLED / next_power_of_two

Function next_power_of_two

src/fl/stl/unordered_map.h:842–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

840 };
841
842 static fl::size next_power_of_two(fl::size n) {
843 fl::size p = 1;
844 while (p < n)
845 p <<= 1;
846 return p;
847 }
848
849 pair<fl::size, bool> find_slot(const Key &key) const {
850 const fl::size cap = _buckets.size();

Callers 2

unordered_mapFunction · 0.85
rehash_internalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected