diff options
author | musil <tmusil@users.sourceforge.net> | 2012-09-06 16:34:47 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2012-09-06 16:34:47 +0000 |
commit | b5792287d9e3e2ae07083e79fe354d98fbd73741 (patch) | |
tree | 60205e69ff201bfe20dfd2a82a2772549e853e76 /iemlib1 | |
parent | 633501b4fc15871f7fa629db8bbb328dd2ade67b (diff) |
changed function abs to fabs
svn path=/trunk/externals/iemlib/; revision=16199
Diffstat (limited to 'iemlib1')
-rw-r--r-- | iemlib1/src/peakenv_hold~.c | 2 | ||||
-rw-r--r-- | iemlib1/src/peakenv~.c | 2 | ||||
-rw-r--r-- | iemlib1/src/pvu~.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/iemlib1/src/peakenv_hold~.c b/iemlib1/src/peakenv_hold~.c index f21a8d2..6b64808 100644 --- a/iemlib1/src/peakenv_hold~.c +++ b/iemlib1/src/peakenv_hold~.c @@ -66,7 +66,7 @@ static t_int *peakenv_hold_tilde_perform(t_int *w) counter = x->x_counter; for(i=0; i<n; i++) { - absolute = (double)abs((double)(*in++)); + absolute = (double)fabs(*in++); if(counter > 0) counter--;// hold peride else diff --git a/iemlib1/src/peakenv~.c b/iemlib1/src/peakenv~.c index 9e25e2c..174624c 100644 --- a/iemlib1/src/peakenv~.c +++ b/iemlib1/src/peakenv~.c @@ -49,7 +49,7 @@ static t_int *peakenv_tilde_perform(t_int *w) for(i=0; i<n; i++) { - absolute = (double)abs((double)(*in++)); + absolute = (double)fabs(*in++); peak *= c1; if(absolute > peak) peak = absolute; diff --git a/iemlib1/src/pvu~.c b/iemlib1/src/pvu~.c index e1d4053..74b496a 100644 --- a/iemlib1/src/pvu~.c +++ b/iemlib1/src/pvu~.c @@ -99,7 +99,7 @@ static t_int *pvu_tilde_perform(t_int *w) { for(i=0; i<n; i++) { - absolute = abs((t_float)(*in++)); + absolute = (t_float)fabs(*in++); if(absolute > peak) peak = absolute; } |