Skip to content

Commit

Permalink
Use standard exp10f instead of pow10f
Browse files Browse the repository at this point in the history
Starting with glibc 2.27, the latter is no longer supported

Bug-Debian: https://bugs.debian.org/890633
  • Loading branch information
jpcima committed Aug 22, 2018
1 parent 072e2fe commit e0e9397
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dsp/v4f_IIR2.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
namespace DSP {

#ifdef __APPLE__
inline float pow10f(float f) {return pow(10,f);}
inline float exp10f(float f) {return pow(10,f);}
#endif

class RBJv4
Expand Down Expand Up @@ -142,7 +142,7 @@ class IIR2v4
/* A = pow (10, gain / 40) */
v4f_t A = (v4f_t) {.025,.025,.025,.025};
A *= gain;
A = v4f_map<pow10f> (A);
A = v4f_map<exp10f> (A);

RBJv4 p (f, Q);

Expand Down Expand Up @@ -429,7 +429,7 @@ class IIR2v4Bank
/* A = pow (10, gain / 40) */
v4f_t A = (v4f_t) {.025,.025,.025,.025};
A *= gain[i];
A = v4f_map<pow10f> (A);
A = v4f_map<exp10f> (A);

RBJv4 p (f[i], Q[i]);

Expand Down

0 comments on commit e0e9397

Please sign in to comment.