Mercurial > hg > Members > kono > Cerium
diff example/Simple/spe/Twice.cc @ 635:8cc609285bbe
SimpleTask worked on Mac OS X
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Nov 2009 18:36:25 +0900 |
parents | 0558abba673c |
children | a909c50081c2 |
line wrap: on
line diff
--- a/example/Simple/spe/Twice.cc Wed Nov 18 17:29:14 2009 +0900 +++ b/example/Simple/spe/Twice.cc Wed Nov 18 18:36:25 2009 +0900 @@ -15,7 +15,7 @@ i_data = (int*)rbuf; o_data = (int*)wbuf; - length = s->read_size(); + length = s->read_size()/sizeof(int); for (int i = 0; i < length; i++) { o_data[i] = i_data[i] * 2;