From 6c38d4c61b0eb5a539d0c668f524fe1a66643a68 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 23 Oct 2007 01:40:17 +0000 Subject: checked in small Intel Mac fix from Thomas Grill, patch #1604142 svn path=/trunk/externals/miXed/; revision=8866 --- cyclone/sickle/Clip.c | 4 ++-- shared/shared.h | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cyclone/sickle/Clip.c b/cyclone/sickle/Clip.c index 2888be1..d6efd96 100644 --- a/cyclone/sickle/Clip.c +++ b/cyclone/sickle/Clip.c @@ -13,7 +13,7 @@ typedef t_sic t_clip; static t_class *clip_class; -static t_int *clip_perform(t_int *w) +static t_int *Clip_perform(t_int *w) { int nblock = (int)(w[1]); t_float *in1 = (t_float *)(w[2]); @@ -37,7 +37,7 @@ static t_int *clip_perform(t_int *w) static void clip_dsp(t_clip *x, t_signal **sp) { - dsp_add(clip_perform, 5, sp[0]->s_n, + dsp_add(Clip_perform, 5, sp[0]->s_n, sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec); } diff --git a/shared/shared.h b/shared/shared.h index 0e60dbd..73e84e2 100644 --- a/shared/shared.h +++ b/shared/shared.h @@ -91,8 +91,13 @@ typedef unsigned short uint16; #ifndef uchar typedef unsigned char uchar; #endif +#ifdef __BIG_ENDIAN__ #define SHARED_HIOFFSET 0 #define SHARED_LOWOFFSET 1 +#else +#define SHARED_HIOFFSET 1 +#define SHARED_LOWOFFSET 0 +#endif #endif #ifdef IRIX -- cgit v1.2.1