Mercurial > hg > Game > Cerium
comparison example/word_count/ppe/Print.cc @ 786:043c98537bc5 draft
fix early free of TaskArray, add SchedTaskArrayNop stage.
author | yutaka@localhost.localdomain |
---|---|
date | Sat, 24 Apr 2010 15:24:33 +0900 |
parents | f02b3338b91b |
children | 852ed17d8af1 |
comparison
equal
deleted
inserted
replaced
785:083c4a270809 | 786:043c98537bc5 |
---|---|
24 for (int j = 0; j < status_num; j++) { | 24 for (int j = 0; j < status_num; j++) { |
25 word_data[j] += idata[i+j]; | 25 word_data[j] += idata[i+j]; |
26 } | 26 } |
27 } | 27 } |
28 | 28 |
29 for (int i = status_num; i > 0; i--) { | 29 for (int i = 0; i < status_num; i++) { |
30 s->printf("%llu ",word_data[i-1]); | 30 s->printf("%llu ",word_data[status_num - i - 1]); |
31 } | 31 } |
32 | 32 |
33 s->printf("\n"); | 33 s->printf("\n"); |
34 | 34 |
35 | 35 |