diff options
author | Katja <katjav@users.sourceforge.net> | 2011-11-06 14:41:44 +0000 |
---|---|---|
committer | Katja <katjav@users.sourceforge.net> | 2011-11-06 14:41:44 +0000 |
commit | 4f1ee28d687d583601d41ff58e1618b381d2675f (patch) | |
tree | eb9df33c9928ec11de287a1d70ec714c9a3b9f7c /modules++/filterortho~.cc | |
parent | 4a05094c9a009707674c079c0481eaf8e1f8490f (diff) |
made creb compliant with double precision
- changed float to t_float
- adapted subnormal detection
svn path=/trunk/externals/creb/; revision=15706
Diffstat (limited to 'modules++/filterortho~.cc')
-rw-r--r-- | modules++/filterortho~.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules++/filterortho~.cc b/modules++/filterortho~.cc index c80552b..b792729 100644 --- a/modules++/filterortho~.cc +++ b/modules++/filterortho~.cc @@ -43,8 +43,8 @@ static t_int *filterortho_perform(t_int *w) { - t_float *in = (float *)(w[3]); - t_float *out = (float *)(w[4]); + t_float *in = (t_float *)(w[3]); + t_float *out = (t_float *)(w[4]); DSPIfilterOrtho* filterortho = (DSPIfilterOrtho *)(w[1]); t_int n = (t_int)(w[2]); t_int i; @@ -52,7 +52,7 @@ static t_int *filterortho_perform(t_int *w) // dit kan beter - float smooth = 1.0f - pow(.05f,1.0f/(float)(n)); + t_float smooth = 1.0 - pow(.05,1.0/(t_float)(n)); for (i = 0; i < n; i++) { |