Changeset 1251


Ignore:
Timestamp:
Jul 31, 2011, 12:15:05 PM (8 years ago)
Author:
cameron
Message:

Notes for optimizing UTF-8 validation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/parabix2_pablo.py

    r1245 r1251  
    268268                        u8.xBF = (temp73 & temp23);
    269269                        u8.xBE = (temp73 & temp15);
     270#
     271#  Probably faster, but Advance32 not presently allowed within if.  RDC Jul 31/11
     272#                       E0_F0_scope = bitutil.Advance(xE0 | xF0)
     273#                       ED_F4_scope = bitutil.Advance(xED | xF4)
     274#                       u8.xEF_scope = bitutil.Advance(xEF);
     275#                       scope3_32 = bitutil.Advance32(u8.prefix3)
     276#                       scope4_32 = bitutil.Advance32(u8.prefix4)
     277#                       u8.scope32 = interpose32(u8.prefix3, scope3_32, 1)
     278#                       u8.scope33 = interpose32(u8.prefix3, scope3_32, 2)
     279#                       u8.scope42 = interpose32(u8.prefix4, scope4_32, 1)
     280#                       u8.scope43 = interpose32(u8.prefix4, scope4_32, 2)
     281#                       u8.scope44 = interpose32(u8.prefix4, scope4_32, 3)
     282#                       u8.xE0_scope = u8.scope32 & E0_F0_scope
     283#                       u8.xED_scope = u8.scope32 & ED_F4_scope
     284#                       u8.xF0_scope = u8.scope42 & E0_F0_scope
     285#                       u8.xF4_scope = u8.scope42 & ED_F4_scope
     286#
    270287                        u8.xE0_scope = bitutil.Advance(xE0);
    271288                        u8.xED_scope = bitutil.Advance(xED);
Note: See TracChangeset for help on using the changeset viewer.