Skip to content

Commit

Permalink
add constexpr in exp init
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjogoTT committed Mar 18, 2024
1 parent 9a3761b commit e83e838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/inc/sfpu/ckernel_sfpu_exp.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void _calculate_exponential_(const int iterations, uint16_t exp_base_scale_facto
template <bool APPROXIMATION_MODE>
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);
Expand Down

0 comments on commit e83e838

Please sign in to comment.