FastLED 3.10.6
Loading...
Searching...
No Matches
unordered_map_basic.cpp.hpp
Go to the documentation of this file.
1// IWYU pragma: private, include "fl/stl/unordered_map_basic.h"
2//
3// unordered_map_basic: implementation of the type-erased probing-
4// sequence helper shared across all `fl::unordered_map<K, V, ...>`
5// instantiations. See `unordered_map_basic.h` for design rationale
6// (FastLED #3235 Tier 1C).
7
9
10namespace fl {
11namespace detail {
12
14fl::size unordered_map_probe_idx(fl::size h, fl::size i,
15 fl::size mask, fl::size cap) FL_NO_EXCEPT {
17 return (h + i) & mask;
18 }
20 return (h + i + i * i) & mask;
21 }
22 return (h + i) & mask;
23}
24
25} // namespace detail
26} // namespace fl
#define FL_NO_INLINE
@ kUnorderedMapQuadraticProbingTries
@ kUnorderedMapLinearProbeOnlyThreshold
FL_NO_INLINE fl::size unordered_map_probe_idx(fl::size h, fl::size i, fl::size mask, fl::size cap) FL_NO_EXCEPT
Compile-time linker keep-alive hook for a single fl::Bus.
Definition bus_info.h:57
InputGamut g FL_NO_EXCEPT
Definition rgbw.h:121
Base definition for an LED controller.
Definition crgb.hpp:179