From 4a05094c9a009707674c079c0481eaf8e1f8490f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 8 Oct 2011 17:22:41 +0000 Subject: converted float to t_float to support double-precision Pd, creb still needs to separate t_float and t_sample tho svn path=/trunk/externals/creb/; revision=15546 --- modules/xfm~.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/xfm~.c') diff --git a/modules/xfm~.c b/modules/xfm~.c index 63c79ab..f66831d 100644 --- a/modules/xfm~.c +++ b/modules/xfm~.c @@ -88,8 +88,8 @@ void xfm_type(t_xfm *x, t_float f) static inline t_float xfm_sat(t_float x) { - const float max = 1; - const float min = -1; + const t_float max = 1; + const t_float min = -1; x = (x > max) ? (max) : (x); x = (x < min) ? (min) : (x); @@ -101,12 +101,12 @@ static t_int *xfm_perform(t_int *w) { - t_float *inA = (float *)(w[3]); - t_float *inB = (float *)(w[4]); - t_float *fbA = (float *)(w[5]); - t_float *fbB = (float *)(w[6]); - t_float *outA = (float *)(w[7]); - t_float *outB = (float *)(w[8]); + t_float *inA = (t_float *)(w[3]); + t_float *inB = (t_float *)(w[4]); + t_float *fbA = (t_float *)(w[5]); + t_float *fbB = (t_float *)(w[6]); + t_float *outA = (t_float *)(w[7]); + t_float *outB = (t_float *)(w[8]); t_xfmctl *ctl = (t_xfmctl *)(w[1]); t_int n = (t_int)(w[2]); //t_float *tab = ctl->c_sintab; -- cgit v1.2.1