Ignore:
Timestamp:
Jul 9, 2010, 4:22:13 PM (9 years ago)
Author:
cameron
Message:

Generate CarryType?/Carry0 for all cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/py2bitexpr.py

    r455 r456  
    976976        for i in  var_dic['int']:
    977977                if int_carry:
    978                         s+="int %s=0;\n"%i
     978                        s+="CarryType %s = Carry0;\n"%i
    979979                else:
    980                         s+="BitBlock %s=AllZero;\n"%i
     980                        s+="CarryType %s = Carry0;\n"%i
    981981
    982982
     
    15101510                code += ";\n"
    15111511            elif isinstance(s[0].RHS, bitexpr.FalseLiteral):
    1512                 code += "0;\n"
     1512                code += "Carry0;\n"
    15131513    elif isinstance(s[0], bitexpr.BitAssign) and (isinstance(s[0].RHS, bitexpr.Add) or isinstance(s[0].RHS, bitexpr.Sub)):
    15141514            if isinstance(s[0].RHS, bitexpr.Add) and (s[0].RHS.operand1.varname == s[0].RHS.operand2.varname):
Note: See TracChangeset for help on using the changeset viewer.