Mercurial > hg > Game > Cerium
diff example/fft/ppe/butterfly.cc @ 1835:144e573b030b draft
fix fft
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 20 Dec 2013 03:00:32 +0900 |
parents | b0376e1c51e9 |
children |
line wrap: on
line diff
--- a/example/fft/ppe/butterfly.cc Thu Dec 19 11:11:41 2013 +0900 +++ b/example/fft/ppe/butterfly.cc Fri Dec 20 03:00:32 2013 +0900 @@ -18,9 +18,9 @@ unsigned long gid = s->x; // (unsigned long)s->get_param(0); unsigned long nid = s->y; // (unsigned long)s->get_param(1); - long n = (long)s->get_param(3); - unsigned long direction_flag = (unsigned long)s->get_param(4); - long iter = (long)s->get_param(5); + long n = (long)s->get_param(0); + unsigned long direction_flag = (unsigned long)s->get_param(1); + long iter = (long)s->get_param(2); int butterflySize = 1 << (iter-1); int butterflyGrpDist = 1 << iter;