Changeset 2231


Ignore:
Timestamp:
Jul 2, 2012, 3:13:02 PM (7 years ago)
Author:
cameron
Message:

Make has_bit a macro to work with MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock_scan.hpp

    r2015 r2231  
    1414#include "bitblock.hpp"
    1515
     16#define has_bit(x) (x != 0)
    1617/*
    1718 * Templated scanner forward and reverse scanner classes on biblock_t, scanblock_t.
     
    3132        int32_t blk;
    3233        scanblock_t scan_blk;
    33         /* The test here needs to be != 0, not > 0, in case scanblock_t is signed.*/
    34         IDISA_ALWAYS_INLINE bool has_bit(scanblock_t x) const {return x != 0;};
    3534};
    3635
     
    143142};
    144143
    145 
     144#undef has_bit
    146145#endif // BITBLOCK_SCAN_H_
    147146
Note: See TracChangeset for help on using the changeset viewer.