Changeset 2569 for proto/PDF/pdf.py


Ignore:
Timestamp:
Oct 26, 2012, 4:35:15 PM (7 years ago)
Author:
ksherdy
Message:

Updated compilable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/PDF/pdf.py

    r2568 r2569  
    11import sys
    22import pablo
    3 
    43
    54class Basis_bits():     
     
    166165
    167166
    168 def simd_const_4(hexdigit, EOF_mask):
    169         lgth = pablo.count_leading_zeroes(~EOF_mask)/4
    170         return int(hexdigit*(lgth+1),16)&EOF_mask
     167#def simd_const_4(hexdigit, EOF_mask):
     168#       lgth = pablo.count_leading_zeroes(~EOF_mask)/4
     169#       return int(hexdigit*(lgth+1),16)&EOF_mask
    171170
    172171
    173172def Parse_Escaped(lex, escaped_Callouts):
    174173
    175         odd = simd_const_4('a',pablo.EOF_mask) 
    176         even = simd_const_4('5',pablo.EOF_mask)
     174  #odd = simd_const_4('a',pablo.EOF_mask) 
     175        #even = simd_const_4('5',pablo.EOF_mask)
    177176
    178177        start = lex.Backslash &~ pablo.Advance(lex.Backslash)
     
    188187        escaped_Callouts.UELParen = lex.LParen &~ escape
    189188        escaped_Callouts.UERParen = lex.RParen &~ escape
    190 
    191 def inc() :
    192         global depth
    193         depth+=1
    194 
    195 def dec() :
    196         global depth
    197         depth-=1
    198 
    199 def lt_zero() :
    200         global depth
    201         return depth < 0
    202 
    203 def gt_zero() :
    204         global depth
    205         return depth > 0
    206 
    207 def is_zero() :
    208         global depth
    209         return depth==0
    210189               
    211190# Parallel version
Note: See TracChangeset for help on using the changeset viewer.