Changeset 1222 for proto/parabix2


Ignore:
Timestamp:
Jul 14, 2011, 6:22:18 AM (8 years ago)
Author:
cameron
Message:

Eliminate simd_and; use & operator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/parabix2_pablo.py

    r1221 r1222  
    427427                # EqExpected = bitutil.ScanThru(AttNameFollow, lex.WS)
    428428                # But use if test to optimize.
    429                 if simd_and(AttNameFollow, lex.WS):
     429                if AttNameFollow & lex.WS:
    430430                        EqExpected = bitutil.ScanThru(AttNameFollow, lex.WS)
    431431                else: EqExpected = AttNameFollow
     
    442442                tag_Callouts.AttVal_ends |= AttValFollow
    443443                #  AfterWS = bitutil.ScanThru(AttValFollow, lex.WS)
    444                 if simd_and(AttValFollow, lex.WS):
     444                if AttValFollow & lex.WS:
    445445                        AfterWS = bitutil.ScanThru(AttValFollow, lex.WS)
    446446                else: AfterWS = AttValFollow
     
    465465
    466466        EndTagEnds = bitutil.ScanThru(tag_Callouts.EndTag_marks, tag_Callouts.EndTag_marks | lex.NameScan)
    467         if simd_and(EndTagEnds, lex.WS):
     467        if EndTagEnds & lex.WS:
    468468                EndTagEnds = bitutil.ScanThru(EndTagEnds, lex.WS)
    469469        ParseError |= EndTagEnds & ~lex.RAngle
Note: See TracChangeset for help on using the changeset viewer.