Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
scdaq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scouting-demonstrator
scdaq
Commits
ef369aa3
Commit
ef369aa3
authored
1 year ago
by
Giovanna Lazzari Miotto
Browse files
Options
Downloads
Patches
Plain Diff
[lint] Replace `pow` with constexpr bit-shift
parent
2a753c8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!79
[chore] Apply minor changes to address compiler and linter warnings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/format.h
+1
-1
1 addition, 1 deletion
src/format.h
with
1 addition
and
1 deletion
src/format.h
+
1
−
1
View file @
ef369aa3
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment