Ignore:
Timestamp:
Nov 11, 2014, 11:32:55 PM (5 years ago)
Author:
linmengl
Message:

check-in the code with USE_TWO_UADD_OVERFLOW flag. The corectness check passed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.h

    r4289 r4301  
    1111//#define USE_UADD_OVERFLOW
    1212//#define USE_LONG_INTEGER_SHIFT
     13//#define USE_TWO_UADD_OVERFLOW
     14
     15#if defined(USE_TWO_UADD_OVERFLOW) && !defined(USE_UADD_OVERFLOW)
     16static_assert(false, "Need to turn on them together.");
     17#endif
    1318
    1419//Pablo Expressions
     
    8388
    8489    #ifdef USE_UADD_OVERFLOW
     90    #ifdef USE_TWO_UADD_OVERFLOW
     91    Function* mFunctionUaddOverflow;
     92    SumWithOverflowPack callUaddOverflow(Value *e1, Value *e2);
     93    #else
     94    Function* mFunctionUaddOverflowCarryin;
    8595    SumWithOverflowPack callUaddOverflow(Value *e1, Value *e2, Value *cin);
    86     Function* mFunctionUaddOverflow;
    8796    #endif
     97    #endif
     98
    8899
    89100    StringToValueMap                    mMarkerMap;
Note: See TracChangeset for help on using the changeset viewer.