Changeset 456 for proto


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

Generate CarryType?/Carry0 for all cases.

Location:
proto
Files:
2 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):
  • proto/parabix2/compiled/block_carry.h

    r455 r456  
    1313#define ADC_64 1
    1414#define SIMD_CARRY 2
    15 #define CARRY_STRATEGY ADC_64
     15#define CARRY_STRATEGY SIMD_CARRY
    1616
    1717#if (CARRY_STRATEGY == ADC_64)
     
    9292#if (CARRY_STRATEGY == SIMD_CARRY)
    9393
    94 #typedef SIMD_type CarryType;
     94typedef SIMD_type CarryType;
    9595
    9696#define Carry0 simd_const_1(0)
Note: See TracChangeset for help on using the changeset viewer.