aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cyclone/sickle/Clip.c4
-rw-r--r--shared/shared.h5
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