Changeset 3326 for trunk


Ignore:
Timestamp:
Jun 18, 2013, 1:14:13 PM (6 years ago)
Author:
ksherdy
Message:

Modified impl of carryFlip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/carrySet.hpp

    r3318 r3326  
    6464        CarrySet()
    6565        {
    66             memset (cq, 0, sizeof(BitBlock) * (CarryCount + AdvanceNCount));
     66
     67            memset (cq, 0, sizeof(BitBlock) * (CarryCount + AdvanceNCount));
     68
    6769            //memset(pending64, 0, sizeof(BitBlock) * AdvanceNCount);
    6870        }
     
    121123        }
    122124
    123         IDISA_ALWAYS_INLINE BitBlock carryFlip(BitBlock carry) const
     125        IDISA_ALWAYS_INLINE BitBlock carryFlip(uint16_t carryno) const
    124126        {
    125                 return simd_xor(carry, Carry1);
     127                return simd_xor(cq[carryno], Carry1);
    126128        }
    127129
Note: See TracChangeset for help on using the changeset viewer.