Ignore:
Timestamp:
Apr 8, 2011, 10:16:25 AM (8 years ago)
Author:
cameron
Message:

CarryQ changes for AVX/BitBlock_scantofirst

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/block_carry_avx.h

    r973 r1077  
    4949
    5050#define Carry0 0
     51
     52#define carry_flip(c) ((c) ^ 1)
    5153
    5254#define test_carry(x) ((x) != 0)
     
    148150#define test_carry(x) (((x)&256) > 0)
    149151
     152#define carry_flip(c) ((c)^256)
     153
    150154#define carry_or(carry1, carry2) (carry1 | carry2)
    151155
     
    269273#define test_carry(x) bitblock_has_bit(x)
    270274
     275#define carry_flip(c) simd_xor(c, sisd_from_int(1))
     276
    271277#define carry_or(carry1, carry2) simd_or(carry1, carry2)
    272278*/
     
    279285
    280286#define test_carry(x) ((x) != 0)
     287
     288#define carry_flip(c) ((c)^1)
    281289
    282290#define carry_or(carry1, carry2) (carry1 | carry2)
Note: See TracChangeset for help on using the changeset viewer.