Changeset 410


Ignore:
Timestamp:
Jun 12, 2010, 3:16:24 PM (9 years ago)
Author:
eamiri
Message:

EOF_mask handling added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/template.c

    r392 r410  
    151151  int chars_read = fread(&U8[0], 1, BLOCK_SIZE, infile);
    152152  while (chars_read > 0) {
    153     for (int i = chars_read;i < BLOCK_SIZE; i++) {
    154        ((char *) &U8[0])[i] = 0;
    155     }
     153    sisd_srl(EOF_mask, sisd_from_int(128-chars_read));
    156154
    157155    s2p_bytepack(U8[7], U8[6], U8[5], U8[4], U8[3], U8[2], U8[1], U8[0],
    158     array_u8bit__0_,array_u8bit__1_,array_u8bit__2_,array_u8bit__3_,array_u8bit__4_,array_u8bit__5_,array_u8bit__6_,array_u8bit__7_);
     156    array_bit__0_,array_bit__1_,array_bit__2_,array_bit__3_,array_bit__4_,array_bit__5_,array_bit__6_,array_bit__7_);
     157
     158array_bit__0_ &= EOF_mask;
     159array_bit__1_ &= EOF_mask;
     160array_bit__2_ &= EOF_mask;
     161array_bit__3_ &= EOF_mask;
     162array_bit__4_ &= EOF_mask;
     163array_bit__5_ &= EOF_mask;
     164array_bit__6_ &= EOF_mask;
     165array_bit__7_ &= EOF_mask;
    159166
    160167    @stmts
Note: See TracChangeset for help on using the changeset viewer.