Skip to content
Snippets Groups Projects
Commit ef369aa3 authored by Giovanna Lazzari Miotto's avatar Giovanna Lazzari Miotto :mushroom:
Browse files

[lint] Replace `pow` with constexpr bit-shift

parent 2a753c8c
No related branches found
No related tags found
1 merge request!79[chore] Apply minor changes to address compiler and linter warnings
...@@ -247,7 +247,7 @@ struct constants { ...@@ -247,7 +247,7 @@ struct constants {
static constexpr uint32_t bril_header = 4278781695; static constexpr uint32_t bril_header = 4278781695;
static constexpr uint32_t NBXPerOrbit = 3564; static constexpr uint32_t NBXPerOrbit = 3564;
static constexpr uint32_t NFramesInHistoHeader = 9; static constexpr uint32_t NFramesInHistoHeader = 9;
static constexpr uint64_t N_orbits_per_lumisection = pow(2, 18); static constexpr uint64_t N_orbits_per_lumisection = 1 << 18; // equivalent to pow(2, 18)
}; };
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment