Mercurial > hg > Members > kono > Cerium
comparison example/basic/spe/Twice.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 |
comparison
equal
deleted
inserted
replaced
625:60aa3f241b10 | 626:ab866bc8a624 |
---|---|
13 int *o_data; | 13 int *o_data; |
14 int length; | 14 int length; |
15 | 15 |
16 i_data = (int*)s->get_input(rbuf, 0); | 16 i_data = (int*)s->get_input(rbuf, 0); |
17 o_data = (int*)s->get_output(wbuf, 0); | 17 o_data = (int*)s->get_output(wbuf, 0); |
18 length = s->get_param(0); | 18 length = (long)s->get_param(0); |
19 | 19 |
20 for (int i = 0; i < length; i++) { | 20 for (int i = 0; i < length; i++) { |
21 o_data[i] = i_data[i] * 2; | 21 o_data[i] = i_data[i] * 2; |
22 } | 22 } |
23 | 23 |