Changeset 797


Ignore:
Timestamp:
Dec 8, 2010, 2:25:36 PM (8 years ago)
Author:
ksherdy
Message:

Update Pablo template to handle the @any_carry Pablo compiler directive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/json_pablo_template.c

    r791 r797  
    6060        int err_pos = 0;
    6161       
    62         BytePack buf[(OVERLAP_BUFSIZE+BUFFER_SIZE+OVERLAP_BUFSIZE)/sizeof(SIMD_type)];
     62        BytePack buf[(OVERLAP_BUFSIZE+BUFFER_SIZE+OVERLAP_BUFSIZE)];
    6363        char * srcbuf = ((char *) buf) + OVERLAP_BUFSIZE;
    64         memset((unsigned char *)srcbuf,0,16);
    65         memset(((unsigned char *)srcbuf)+BUFFER_SIZE,0,16); /* Zero out first and last sizeof(SIMD_type) bytes. */
     64        memset((unsigned char *)srcbuf,0,OVERLAP_BUFSIZE);
     65        memset(((unsigned char *)srcbuf)+OVERLAP_BUFSIZE+BUFFER_SIZE,0,OVERLAP_BUFSIZE); /* Zero out first and last sizeof(SIMD_type) bytes. */
    6666       
    6767        /* File IO */
     
    129129                }               
    130130               
    131                 if(chars_avail > 0 /* || any_carry */) { /* process final partial block */
     131                if(chars_avail > 0 || @any_carry ) { /* process final partial block */
    132132                        /* extra */
    133133                        EOF_mask = sisd_srl(simd_const_1(1),sisd_from_int(BLOCK_SIZE-chars_avail));
Note: See TracChangeset for help on using the changeset viewer.