/ani/mrses

To get this branch, use:
bzr branch http://suren.me/webbzr/ani/mrses

« back to all changes in this revision

Viewing changes to cell/mrses_ppu.c

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-30 15:00:46 UTC
  • Revision ID: csa@dside.dyndns.org-20100430150046-1x5cwqqelzx420vf
Fix SPE crashes on big (above 4096) and non-power-of-2 number of properties

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
    int nA = mrses->nA;
276
276
    int nB = mrses->nB;
277
277
    int properties = mrses->properties;
 
278
    int palloc = mrses->palloc;
278
279
    int iterations = mrses->iterations;
279
280
    
280
281
    unsigned int *hist;
340
341
 
341
342
 
342
343
    for (;block < block_end; ++block) { 
343
 
        index = mrses->index + block * properties;
 
344
        index = mrses->index + block * palloc;
344
345
        
345
346
        
346
347
        for (i = 0; i < width; ++i) {