Changeset 1932 for trunk/lib


Ignore:
Timestamp:
Feb 14, 2012, 10:12:59 PM (7 years ago)
Author:
ksherdy
Message:

Update uint32_t to int32_t since negative positions indicate 'not
found'.

Location:
trunk/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock.hpp

    r1909 r1932  
    2424#define BLOCK_SIZE 128
    2525#endif
    26 #ifndef ATTRIBUTE_SIMD_ALIGN
    27     #if defined _MSC_VER
    28         #define ATTRIBUTE_SIMD_ALIGN __declspec(align(16))
    29     #elif defined __GNUC__
    30         #define ATTRIBUTE_SIMD_ALIGN __attribute__((aligned(sizeof(BitBlock))))
    31     #else
    32         #define ATTRIBUTE_SIMD_ALIGN
    33     #endif
    34 #endif
     26#define ATTRIBUTE_SIMD_ALIGN __attribute__((aligned(sizeof(BitBlock))))
    3527#define ASSERT_BITBLOCK_ALIGN(v) assert(0 == (((uint64_t)(&v)) & (sizeof(BitBlock)-1)) )
    3628
  • trunk/lib/bitblock_iterator.hpp

    r1857 r1932  
    4343
    4444        // Returns absolute position.
    45         IDISA_ALWAYS_INLINE int operator*()
     45        IDISA_ALWAYS_INLINE int32_t operator*()
    4646        {
    4747                return scanner.get_pos();
     
    102102
    103103        // Returns absolute position.
    104         IDISA_ALWAYS_INLINE int operator*()
     104        IDISA_ALWAYS_INLINE int32_t operator*()
    105105        {
    106106                return scanner.get_pos();
  • trunk/lib/bitblock_scan.hpp

    r1896 r1932  
    6868
    6969        IDISA_ALWAYS_INLINE const bitblock_t * get_strm() const {return this->strm;}
    70         IDISA_ALWAYS_INLINE uint32_t get_pos() const {return this->pos;}
     70        IDISA_ALWAYS_INLINE int32_t get_pos() const {return this->pos;}
    7171
    7272};
     
    105105
    106106        IDISA_ALWAYS_INLINE const bitblock_t * get_strm() const {return this->strm;}
    107         IDISA_ALWAYS_INLINE uint32_t get_pos() const {return this->pos;}
     107        IDISA_ALWAYS_INLINE int32_t get_pos() const {return this->pos;}
    108108
    109109        static const uint32_t BLOCK_COUNT = sizeof(bitblock_t)/sizeof(scanblock_t);
  • trunk/lib/bitstream_iterator.hpp

    r1894 r1932  
    7272
    7373        // Returns absolute position.
    74         inline int operator*()
     74        inline int32_t operator*()
    7575        {
    7676                return pos;
Note: See TracChangeset for help on using the changeset viewer.