summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/src/d_arithmetic.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/d_arithmetic.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/d_arithmetic.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/d_arithmetic.c b/apps/plugins/pdbox/PDa/src/d_arithmetic.c
index 30744882f4..fa306dedd3 100644
--- a/apps/plugins/pdbox/PDa/src/d_arithmetic.c
+++ b/apps/plugins/pdbox/PDa/src/d_arithmetic.c
@@ -28,6 +28,9 @@ typedef struct _scalarplus
28 28
29static void *plus_new(t_symbol *s, int argc, t_atom *argv) 29static void *plus_new(t_symbol *s, int argc, t_atom *argv)
30{ 30{
31#ifdef ROCKBOX
32 (void) s;
33#endif
31 if (argc > 1) post("+~: extra arguments ignored"); 34 if (argc > 1) post("+~: extra arguments ignored");
32 if (argc) 35 if (argc)
33 { 36 {
@@ -115,6 +118,9 @@ void dsp_add_plus(t_sample *in1, t_sample *in2, t_sample *out, int n)
115 118
116static void plus_dsp(t_plus *x, t_signal **sp) 119static void plus_dsp(t_plus *x, t_signal **sp)
117{ 120{
121#ifdef ROCKBOX
122 (void) x;
123#endif
118 dsp_add_plus(sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n); 124 dsp_add_plus(sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n);
119} 125}
120 126
@@ -161,6 +167,9 @@ typedef struct _scalarminus
161 167
162static void *minus_new(t_symbol *s, int argc, t_atom *argv) 168static void *minus_new(t_symbol *s, int argc, t_atom *argv)
163{ 169{
170#ifdef ROCKBOX
171 (void) s;
172#endif
164 if (argc > 1) post("-~: extra arguments ignored"); 173 if (argc > 1) post("-~: extra arguments ignored");
165 if (argc) 174 if (argc)
166 { 175 {
@@ -240,6 +249,9 @@ t_int *scalarminus_perf8(t_int *w)
240 249
241static void minus_dsp(t_minus *x, t_signal **sp) 250static void minus_dsp(t_minus *x, t_signal **sp)
242{ 251{
252#ifdef ROCKBOX
253 (void) x;
254#endif
243 if (sp[0]->s_n&7) 255 if (sp[0]->s_n&7)
244 dsp_add(minus_perform, 4, 256 dsp_add(minus_perform, 4,
245 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n); 257 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n);
@@ -292,6 +304,9 @@ typedef struct _scalartimes
292 304
293static void *times_new(t_symbol *s, int argc, t_atom *argv) 305static void *times_new(t_symbol *s, int argc, t_atom *argv)
294{ 306{
307#ifdef ROCKBOX
308 (void) s;
309#endif
295 if (argc > 1) post("*~: extra arguments ignored"); 310 if (argc > 1) post("*~: extra arguments ignored");
296 if (argc) 311 if (argc)
297 { 312 {
@@ -371,6 +386,9 @@ t_int *scalartimes_perf8(t_int *w)
371 386
372static void times_dsp(t_times *x, t_signal **sp) 387static void times_dsp(t_times *x, t_signal **sp)
373{ 388{
389#ifdef ROCKBOX
390 (void) x;
391#endif
374 if (sp[0]->s_n&7) 392 if (sp[0]->s_n&7)
375 dsp_add(times_perform, 4, 393 dsp_add(times_perform, 4,
376 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n); 394 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n);
@@ -422,6 +440,9 @@ typedef struct _scalarover
422 440
423static void *over_new(t_symbol *s, int argc, t_atom *argv) 441static void *over_new(t_symbol *s, int argc, t_atom *argv)
424{ 442{
443#ifdef ROCKBOX
444 (void) s;
445#endif
425 if (argc > 1) post("/~: extra arguments ignored"); 446 if (argc > 1) post("/~: extra arguments ignored");
426 if (argc) 447 if (argc)
427 { 448 {
@@ -512,6 +533,9 @@ t_int *scalarover_perf8(t_int *w)
512 533
513static void over_dsp(t_over *x, t_signal **sp) 534static void over_dsp(t_over *x, t_signal **sp)
514{ 535{
536#ifdef ROCKBOX
537 (void) x;
538#endif
515 if (sp[0]->s_n&7) 539 if (sp[0]->s_n&7)
516 dsp_add(over_perform, 4, 540 dsp_add(over_perform, 4,
517 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n); 541 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n);
@@ -563,6 +587,9 @@ typedef struct _scalarmax
563 587
564static void *max_new(t_symbol *s, int argc, t_atom *argv) 588static void *max_new(t_symbol *s, int argc, t_atom *argv)
565{ 589{
590#ifdef ROCKBOX
591 (void) s;
592#endif
566 if (argc > 1) post("max~: extra arguments ignored"); 593 if (argc > 1) post("max~: extra arguments ignored");
567 if (argc) 594 if (argc)
568 { 595 {
@@ -654,6 +681,9 @@ t_int *scalarmax_perf8(t_int *w)
654 681
655static void max_dsp(t_max *x, t_signal **sp) 682static void max_dsp(t_max *x, t_signal **sp)
656{ 683{
684#ifdef ROCKBOX
685 (void) x;
686#endif
657 if (sp[0]->s_n&7) 687 if (sp[0]->s_n&7)
658 dsp_add(max_perform, 4, 688 dsp_add(max_perform, 4,
659 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n); 689 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n);
@@ -705,6 +735,9 @@ typedef struct _scalarmin
705 735
706static void *min_new(t_symbol *s, int argc, t_atom *argv) 736static void *min_new(t_symbol *s, int argc, t_atom *argv)
707{ 737{
738#ifdef ROCKBOX
739 (void) s;
740#endif
708 if (argc > 1) post("min~: extra arguments ignored"); 741 if (argc > 1) post("min~: extra arguments ignored");
709 if (argc) 742 if (argc)
710 { 743 {
@@ -796,6 +829,9 @@ t_int *scalarmin_perf8(t_int *w)
796 829
797static void min_dsp(t_min *x, t_signal **sp) 830static void min_dsp(t_min *x, t_signal **sp)
798{ 831{
832#ifdef ROCKBOX
833 (void) x;
834#endif
799 if (sp[0]->s_n&7) 835 if (sp[0]->s_n&7)
800 dsp_add(min_perform, 4, 836 dsp_add(min_perform, 4,
801 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n); 837 sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[0]->s_n);