Skip to content
Snippets Groups Projects
Commit 889e0f16 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Dropped usage of (UN)LIKELY macros

parent 7139d32f
No related branches found
No related tags found
2 merge requests!3702merge counter decoder into Louis' original branch,!3369Removal of UT common base classes
......@@ -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
......
......@@ -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 );
......
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