diff --git a/common/inc/sfpu/ckernel_sfpu_exp.h b/common/inc/sfpu/ckernel_sfpu_exp.h index 6c7cf4b..7c9cab3 100644 --- a/common/inc/sfpu/ckernel_sfpu_exp.h +++ b/common/inc/sfpu/ckernel_sfpu_exp.h @@ -136,7 +136,7 @@ void _calculate_exponential_(const int iterations, uint16_t exp_base_scale_facto template inline void _init_exponential_() { - if (APPROXIMATION_MODE) { + if constexpr (APPROXIMATION_MODE) { vConstFloatPrgm0 = 1.442695f; // ln2_recip vConstFloatPrgm1 = s2vFloat16b(p_exp::C23_73); vConstFloatPrgm2 = s2vFloat16b(p_exp::ADJ_EXP);