From ac8def79a7080b8ceddbaa7a820397d219fd6648 Mon Sep 17 00:00:00 2001 From: Jan Dorniak Date: Thu, 27 Jun 2024 16:50:20 +0200 Subject: [PATCH] crc: bump some constexpr to C++14 to fix builds --- include/etl/private/crc_implementation.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/etl/private/crc_implementation.h b/include/etl/private/crc_implementation.h index e8708635c..4061cd7f5 100644 --- a/include/etl/private/crc_implementation.h +++ b/include/etl/private/crc_implementation.h @@ -183,7 +183,7 @@ namespace etl template static typename etl::enable_if<(Accumulator_Bits > Chunk_Bits) && Reflect, TAccumulator>::type - ETL_CONSTEXPR crc_update_chunk(TAccumulator crc, uint8_t value, const TAccumulator table[]) + ETL_CONSTEXPR14 crc_update_chunk(TAccumulator crc, uint8_t value, const TAccumulator table[]) { value &= Chunk_Mask; @@ -608,14 +608,14 @@ namespace etl typedef accumulator_type value_type; //************************************************************************* - ETL_CONSTEXPR accumulator_type initial() const + ETL_CONSTEXPR14 accumulator_type initial() const { return TCrcParameters::Reflect ? etl::reverse_bits_const::value : TCrcParameters::Initial; } //************************************************************************* - ETL_CONSTEXPR accumulator_type final(accumulator_type crc) const + ETL_CONSTEXPR14 accumulator_type final(accumulator_type crc) const { return crc ^ TCrcParameters::Xor_Out; } @@ -636,7 +636,7 @@ namespace etl typedef accumulator_type value_type; //************************************************************************* - ETL_CONSTEXPR accumulator_type initial() const + ETL_CONSTEXPR14 accumulator_type initial() const { return TCrcParameters::Reflect ? etl::reverse_bits_const::value : TCrcParameters::Initial; @@ -664,7 +664,7 @@ namespace etl typedef accumulator_type value_type; //************************************************************************* - ETL_CONSTEXPR accumulator_type initial() const + ETL_CONSTEXPR14 accumulator_type initial() const { return TCrcParameters::Reflect ? etl::reverse_bits_const::value : TCrcParameters::Initial;