Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
LHCb
LHCb
Commits
889e0f16
Commit
889e0f16
authored
3 years ago
by
Sebastien Ponce
Browse files
Options
Downloads
Patches
Plain Diff
Dropped usage of (UN)LIKELY macros
parent
7139d32f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!3702
merge counter decoder into Louis' original branch
,
!3369
Removal of UT common base classes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Event/DAQEvent/src/ODIN.cpp
+1
-1
1 addition, 1 deletion
Event/DAQEvent/src/ODIN.cpp
Kernel/LHCbAlgs/src/ODINCodec.cpp
+1
-1
1 addition, 1 deletion
Kernel/LHCbAlgs/src/ODINCodec.cpp
with
2 additions
and
2 deletions
Event/DAQEvent/src/ODIN.cpp
+
1
−
1
View file @
889e0f16
...
...
@@ -13,7 +13,7 @@ namespace LHCb::ODINImplementation::v7_standalone {
using
LHCb
::
ODINImplementation
::
details
::
get_bits
;
// Check size of the input buffer
if
(
UNLIKELY
(
buffer
.
size
()
!=
10
)
)
{
if
(
buffer
.
size
()
!=
10
)
{
std
::
string
msg
=
"Invalid buffer size for ODIN bank version 6: got "
+
std
::
to_string
(
buffer
.
size
()
)
+
", expected 10"
;
#ifndef ODIN_WITHOUT_GAUDI
...
...
This diff is collapsed.
Click to expand it.
Kernel/LHCbAlgs/src/ODINCodec.cpp
+
1
−
1
View file @
889e0f16
...
...
@@ -53,7 +53,7 @@ ODIN LHCb::ODINCodec::decode( const RawBank& bank, const bool ignoreBankVersion
void
LHCb
::
ODINCodec
::
encode
(
const
LHCb
::
ODIN
&
odin
,
const
int
bank_version
,
LHCb
::
span
<
std
::
uint32_t
>
output_buffer
)
{
if
(
LIKELY
(
bank_version
==
ODIN
::
BANK_VERSION
)
)
{
if
(
bank_version
==
ODIN
::
BANK_VERSION
)
{
odin
.
to_version
<
ODIN
::
BANK_VERSION
>
(
output_buffer
);
}
else
if
(
bank_version
==
6
)
{
odin
.
to_version
<
6
>
(
output_buffer
);
...
...
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