Ignore:
Timestamp:
Jul 9, 2010, 3:37:39 PM (9 years ago)
Author:
cameron
Message:

Generate advance_with_carry in all modes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/compiled/block_carry.h

    r452 r454  
    1818typedef uint64_t CarryType;
    1919
    20 #define Carry0 = 0
     20#define Carry0 0
    2121
    2222#define double_int64_adc(x1, x2, y1, y2, rslt1, rslt2, carry) \
     
    5050}while(0)
    5151
     52
     53
    5254#define advance_with_carry(cursor, carry, rslt)\
    53 do{\
    54 union {__m128i bitblock;\
    55 uint64_t int64[2];} z;\
    56 \
    57 union {__m128i bitblock;\
    58 uint64_t int64[2];} x;\
    59 \
    60 x.bitblock = cursor;\
    61 \
    62 double_int64_adc(x.int64[0], x.int64[1], x.int64[0], x.int64[1], z.int64[0], z.int64[1], carry);\
    63 rslt = z.bitblock;\
    64 }while(0)
     55    adc128(cursor, cursor, carry, rslt)
     56
    6557
    6658#define double_int64_sbb(x1, x2, y1, y2, rslt1, rslt2, carry) \
Note: See TracChangeset for help on using the changeset viewer.