MCPcopy Create free account
hub / github.com/EasyRPG/Player / make

Function make

bench/switches.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5constexpr int max_sws = 1024; // Keep this a power of 2 so no expensive modulus instructions
6
7static 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
14template <typename F>
15static void BM_SwitchOp(benchmark::State& state, F&& op) {

Callers 2

BM_SwitchOpFunction · 0.70
BM_SwitchRangeOpFunction · 0.70

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected