Changeset 752


Ignore:
Timestamp:
Dec 1, 2010, 12:06:42 PM (8 years ago)
Author:
cameron
Message:

Pablo/compiler2 project initial check-in

Location:
proto/parabix2/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/src/tag_matcher.cpp

    r667 r752  
    262262  mode = StartOfFile;
    263263  InFinalEndTag = 0;
     264
     265#ifdef TEMPLATED_SIMD_LIB
     266  NameFollows[BUFFER_SIZE/BLOCK_SIZE]=simd<1>::constant<1>();  //sentinel
     267#endif
     268#ifndef TEMPLATED_SIMD_LIB
    264269  NameFollows[BUFFER_SIZE/BLOCK_SIZE]=simd_const_1(1);  //sentinel
     270#endif
    265271}
    266272
  • proto/parabix2/src/tag_matcher.h

    r629 r752  
    181181          }
    182182          if(srcbuf[pos-1]!='<'|| srcbuf[pos]=='!'||srcbuf[pos]=='/'){
     183print_bit_block("srcbuf", sisd_load_unaligned((BitBlock *) srcbuf));
    183184            fprintf(stderr,"illegal content before root element at position =%i.\n",buf_base+pos);
    184185            exit(-1);
     
    200201
    201202void tag_matcher::store_streams(SIMD_type tagMark, SIMD_type NameFollow, SIMD_type miscMark, int chars_avail){
     203#ifdef DUMP
     204print_bit_block("tagMark", tagMark);
     205print_bit_block("NameFollow", NameFollow);
     206print_bit_block("miscMark", miscMark);
     207printf("chars_avail = %i\n", chars_avail);
     208printf("stream_index = %i\n", stream_index);
     209
     210#endif
    202211  tagMarks[stream_index] = tagMark;
    203212  miscMarks[stream_index] = simd_not(miscMark);
     
    216225      }
    217226      pos = bitstream_scan(miscMarks,pos+1);
     227#ifdef DUMP
     228print_bit_block("miscMarks[0]", miscMarks[0]);
     229printf("pos = %i\n", pos);
     230
     231
     232#endif
    218233      if(pos!=chars_avail){
    219234        fprintf(stderr,"illegal content after root element at position = %i\n",buf_base+pos);
Note: See TracChangeset for help on using the changeset viewer.