| 5 | constexpr int max_sws = 1024; // Keep this a power of 2 so no expensive modulus instructions |
| 6 | |
| 7 | static Game_Switches make(int size = max_sws) { |
| 8 | lcf::Data::switches.resize(size); |
| 9 | Game_Switches switches; |
| 10 | switches.Set(size, false); |
| 11 | return switches; |
| 12 | } |
| 13 | |
| 14 | template <typename F> |
| 15 | static void BM_SwitchOp(benchmark::State& state, F&& op) { |
no test coverage detected