Changeset 798


Ignore:
Timestamp:
Dec 8, 2010, 2:26:00 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/Compiler/workspace/pablo_template.c

    r794 r798  
    4848        int err_pos = 0;
    4949       
    50         BytePack buf[(OVERLAP_BUFSIZE+BUFFER_SIZE+OVERLAP_BUFSIZE)/sizeof(SIMD_type)];
     50        BytePack buf[(OVERLAP_BUFSIZE+BUFFER_SIZE+OVERLAP_BUFSIZE)];
    5151        char * srcbuf = ((char *) buf) + OVERLAP_BUFSIZE;
    52         memset((unsigned char *)srcbuf,0,16);
    53         memset(((unsigned char *)srcbuf)+BUFFER_SIZE,0,16); /* Zero out first and last sizeof(SIMD_type) bytes. */
     52        memset((unsigned char *)srcbuf,0,OVERLAP_BUFSIZE);
     53        memset(((unsigned char *)srcbuf)+OVERLAP_BUFSIZE+BUFFER_SIZE,0,OVERLAP_BUFSIZE); /* Zero out first and last sizeof(SIMD_type) bytes. */
    5454       
    5555        /* File IO */
     
    8787                }               
    8888               
    89                 if(chars_avail > 0 /* || any_carry */) { /* process final partial block */
     89                if(chars_avail > 0 || @any_carry ) { /* process final partial block */
    9090                        /* extra */
    9191                        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.