Skip to content

Commit

Permalink
Made a more specific template in Oscil for FixMath
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcombriat committed Feb 24, 2024
1 parent 9e1c4ad commit 8d69afc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Oscil.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ class Oscil
@note This didn't run faster than float last time it was tested, after 2014 code changes. Need to see if 2014 changes improved or worsened performance.
@param frequency in UFix<NI,NF> fixed-point number format.
*/
template <int8_t NI, int8_t NF>
template <int8_t NI, int8_t NF, uint64_t RANGE>
inline
void setFreq(UFix<NI,NF> frequency)
void setFreq(UFix<NI,NF,RANGE> frequency)
{
setFreq_Q16n16(UFix<16,16>(frequency).asRaw());
setFreq_Q16n16(UFix<16,16>(frequency).asRaw());
}


Expand Down

0 comments on commit 8d69afc

Please sign in to comment.