Changeset 3449 for trunk


Ignore:
Timestamp:
Sep 9, 2013, 7:56:32 AM (5 years ago)
Author:
cameron
Message:

Add carryout2carry for legacy CCGO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock128.hpp

    r2605 r3449  
    3636static IDISA_ALWAYS_INLINE carry_t bitblock2carry(bitblock128_t carry);
    3737
     38static IDISA_ALWAYS_INLINE carry_t carryout2carry(bitblock128_t carryout);
     39
    3840static IDISA_ALWAYS_INLINE void adc(bitblock128_t x, bitblock128_t y, carry_t & carry, bitblock128_t & sum);
    3941static IDISA_ALWAYS_INLINE void sbb(bitblock128_t x, bitblock128_t y, carry_t & borrow, bitblock128_t & difference);
     
    5052static IDISA_ALWAYS_INLINE carry_t bitblock2carry(bitblock128_t carry) {  return carry;}
    5153
     54static IDISA_ALWAYS_INLINE carry_t carryout2carry(bitblock128_t carryout) {
     55 return bitblock::srli<BLOCK_SIZE-1>(carryout);
     56}
    5257
    5358
Note: See TracChangeset for help on using the changeset viewer.