Skip to content

Commit

Permalink
Use powf for float32 target
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Nov 17, 2016
1 parent 0803673 commit 0e68ba3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions exported-code/gen_dsp/genlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ void genlib_buffer_perform_end(t_genlib_buffer *b)

t_sample gen_msp_pow(t_sample value, t_sample power)
{
#ifdef GENLIB_USE_FLOAT32
return powf(value, power);
#else
return pow(value, power);
#endif
}

void genlib_data_setbuffer(t_genlib_data *b, void *ref)
Expand Down

0 comments on commit 0e68ba3

Please sign in to comment.