comparison example/Bulk/spe/Twice.cc @ 787:5df90e02e34f

fix Bulk
author yutaka@localhost.localdomain
date Sat, 24 Apr 2010 17:25:46 +0900
parents e4d2b823903c
children
comparison
equal deleted inserted replaced
786:ccf78a465459 787:5df90e02e34f
12 // SchedTaskArray *a = (SchedTaskArray *)s; 12 // SchedTaskArray *a = (SchedTaskArray *)s;
13 13
14 int *i_data; 14 int *i_data;
15 int *o_data; 15 int *o_data;
16 long length; 16 long length;
17 int count = (int)s->get_param(0); 17 int data_count = (int)s->get_param(0);
18 18
19 for(int j = 0; j<count; j++) { 19 for(int j = 0; j<data_count; j++) {
20 i_data = (int*)s->get_input(rbuf, j); 20 i_data = (int*)s->get_input(rbuf, j);
21 o_data = (int*)s->get_output(wbuf, j); 21 o_data = (int*)s->get_output(wbuf, j);
22 length = (long)s->get_param(j+1); 22 length = (long)s->get_param(j+1);
23 23
24 for (int i = 0; i < length; i++) { 24 for (int i = 0; i < length; i++) {