/[escript]/trunk/paso/src/Pattern_unrollBlocks.c
ViewVC logotype

Diff of /trunk/paso/src/Pattern_unrollBlocks.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3311 by gross, Mon Oct 18 22:39:28 2010 UTC revision 3312 by gross, Tue Oct 26 07:54:58 2010 UTC
# Line 34  Paso_Pattern* Paso_Pattern_unrollBlocks( Line 34  Paso_Pattern* Paso_Pattern_unrollBlocks(
34    Paso_Pattern*out=NULL;    Paso_Pattern*out=NULL;
35    index_t *ptr=NULL,*index=NULL,iPtr;    index_t *ptr=NULL,*index=NULL,iPtr;
36    dim_t i,j,k, block_size, new_len, new_numOutput, new_numInput;    dim_t i,j,k, block_size, new_len, new_numOutput, new_numInput;
37    index_t index_offset_in=(pattern->type & PATTERN_FORMAT_OFFSET1 ? 1:0);    const index_t index_offset_in=(pattern->type & MATRIX_FORMAT_OFFSET1 ? 1:0);
38    index_t index_offset_out=(type & PATTERN_FORMAT_OFFSET1 ? 1:0);    const index_t index_offset_out=(type & MATRIX_FORMAT_OFFSET1 ? 1:0);
39    
40        
41    Esys_resetError();    Esys_resetError();
42    if ( ( output_block_size == 1 ) && (input_block_size == 1) && ((pattern->type & PATTERN_FORMAT_OFFSET1) == (type & PATTERN_FORMAT_OFFSET1) ) ) {    if ( ( output_block_size == 1 ) && (input_block_size == 1) && ((pattern->type & MATRIX_FORMAT_OFFSET1) == (type & MATRIX_FORMAT_OFFSET1) ) ) {
43       out = Paso_Pattern_getReference(pattern);       out = Paso_Pattern_getReference(pattern);
44    } else {    } else {
45       block_size=output_block_size*input_block_size;       block_size=output_block_size*input_block_size;

Legend:
Removed from v.3311  
changed lines
  Added in v.3312

  ViewVC Help
Powered by ViewVC 1.1.26