Mercurial > hg > Members > kono > Cerium
comparison example/dependency_task/spe/Exec.cc @ 626:ab866bc8a624
64bit mode compatibility on Cell
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2009 11:37:26 +0900 |
parents | 44c0bce54dcf |
children | 80b18af207c2 |
comparison
equal
deleted
inserted
replaced
625:60aa3f241b10 | 626:ab866bc8a624 |
---|---|
8 static int | 8 static int |
9 run(SchedTask *s, void *rbuf, void *wbuf) | 9 run(SchedTask *s, void *rbuf, void *wbuf) |
10 { | 10 { |
11 int *idata = (int*)s->get_input(rbuf, 0); | 11 int *idata = (int*)s->get_input(rbuf, 0); |
12 int *odata = (int*)s->get_output(wbuf, 0); | 12 int *odata = (int*)s->get_output(wbuf, 0); |
13 int length = s->get_param(0); | 13 int length = (long)s->get_param(0); |
14 int calnum = s->get_param(1); | 14 int calnum = (long)s->get_param(1); |
15 | 15 |
16 for (int i = 0; i < length; i++) { | 16 for (int i = 0; i < length; i++) { |
17 odata[i] = idata[i] + calnum; | 17 odata[i] = idata[i] + calnum; |
18 } | 18 } |
19 | 19 |