Changeset 3392 for trunk/lib


Ignore:
Timestamp:
Jul 10, 2013, 10:41:57 AM (6 years ago)
Author:
cameron
Message:

Return int rather than uint32_t saves a conversion

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock_iterator.hpp

    r3377 r3392  
    4141        BitBlockScanner() {}
    4242
    43         IDISA_ALWAYS_INLINE int init(const BitBlock *s) {
     43        IDISA_ALWAYS_INLINE void init(const BitBlock *s) {
    4444                remaining._bitblock = *s;
    4545                mask = hsimd<FW>::signmask(simd_not(simd<FW>::eq(simd<1>::constant<0>(), remaining._bitblock)));
  • trunk/lib/builtins.hpp

    r2719 r3392  
    8080        #endif
    8181
    82         IDISA_ALWAYS_INLINE uint32_t scan_forward_zeroes(ScanWord x) { // Precondition: x != 0
    83                 return (uint32_t) ScanForwardIntrinsic((ScanWord) x);
     82        IDISA_ALWAYS_INLINE int scan_forward_zeroes(ScanWord x) { // Precondition: x != 0
     83                return ScanForwardIntrinsic((ScanWord) x);
    8484        }
    8585
    86         IDISA_ALWAYS_INLINE uint32_t scan_backward_zeroes(ScanWord x) { // Precondition: x != 0
    87                 return (uint32_t) ScanReverseIntrinsic((ScanWord) x);
     86        IDISA_ALWAYS_INLINE int scan_backward_zeroes(ScanWord x) { // Precondition: x != 0
     87                return ScanReverseIntrinsic((ScanWord) x);
    8888        }
    8989
Note: See TracChangeset for help on using the changeset viewer.