Mercurial > hg > Members > kono > Cerium
diff example/basic/spe/Twice.cc @ 467:44c0bce54dcf
fix all examples. test_render is not working now.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 01 Oct 2009 19:25:25 +0900 |
parents | 58fd16298954 |
children | ab866bc8a624 |
line wrap: on
line diff
--- a/example/basic/spe/Twice.cc Thu Oct 01 17:33:58 2009 +0900 +++ b/example/basic/spe/Twice.cc Thu Oct 01 19:25:25 2009 +0900 @@ -6,16 +6,16 @@ /* これは必須 */ SchedDefineTask(Twice); -int -Twice::run(void *rbuf, void *wbuf) +static int +run(SchedTask *s, void *rbuf, void *wbuf) { int *i_data; int *o_data; int length; - i_data = (int*)get_input(rbuf, 0); - o_data = (int*)get_output(wbuf, 0); - length = get_param(0); + i_data = (int*)s->get_input(rbuf, 0); + o_data = (int*)s->get_output(wbuf, 0); + length = s->get_param(0); for (int i = 0; i < length; i++) { o_data[i] = i_data[i] * 2;