Changeset 647 for proto/u8u16


Ignore:
Timestamp:
Oct 12, 2010, 5:23:35 AM (9 years ago)
Author:
cameron
Message:

Modify driver for truncated chars at end of buffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/u8u16/template.c

    r646 r647  
    181181        if (bitblock_has_bit(simd_and(strct_u8__scope44_, errbit))) {
    182182          u8advance -= 3;
     183          if (u8advance <= -2) *targetbuf -= 2;
     184          if (u8advance <= 0) return;
    183185        }
    184186        else if (bitblock_has_bit(simd_and(strct_u8__scope43_, errbit))) {
    185187          u8advance -= 2;
     188          if (u8advance <= -2) *targetbuf -= 2;
     189          if (u8advance <= 0) return;
    186190        }
    187191        else if (bitblock_has_bit(simd_and(strct_u8__scope33_, errbit))) {
    188192          u8advance -= 2;
     193          if (u8advance <= 0) return;
    189194        }
    190195        else if (bitblock_has_bit(simd_and(simd_or(strct_u8__scope22_, simd_or(strct_u8__scope32_, strct_u8__scope42_)), errbit))) {
    191196          u8advance -= 1;
     197          if (u8advance <= 0) return;
    192198        }
    193199        delmask |= sisd_sfl(simd_const_8(-1), sisd_from_int(u8advance));
Note: See TracChangeset for help on using the changeset viewer.