Changeset 1695


Ignore:
Timestamp:
Nov 18, 2011, 8:33:56 PM (6 years ago)
Author:
ksherdy
Message:

Updated CarryCombine? interface to support multiple carry queue subclass implementations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/carryQ.hpp

    r1694 r1695  
    193193        }
    194194
    195         IDISA_ALWAYS_INLINE void CarryCombine(const BitBlock local_cq[], uint16_t carryno, uint16_t carry_count)
    196         {
     195        IDISA_ALWAYS_INLINE void CarryCombine(ICarryQueue * carryqueue, uint16_t carryno, uint16_t carry_count)
     196        {
     197                  BitBlock * local_cq = ((CarryArray *)carryqueue)->cq;
    197198                  for (int i = 0; i < carry_count; i++) {
    198199                    cq[carryno+i] = carry_or(cq[carryno+i], local_cq[i]);
    199200                  }
    200         }
    201 
    202         /* read-only */
    203         IDISA_ALWAYS_INLINE const BitBlock * array() const
    204         {
    205                 return cq;
    206201        }
    207202
Note: See TracChangeset for help on using the changeset viewer.