Skip to content

Commit 1719099

Browse files
Fix compilation edge case
1 parent 00b8e3c commit 1719099

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/common/qrack_functions.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
\
3737
return 0;
3838

39-
#if (QBCAPPOW < 7) || ((QBCAPPOW < 8) && defined(__SIZEOF_INT128__)) || \
40-
((QBCAPPOW > 7) && defined(BOOST_AVAILABLE) && defined(ENABLE_CPP_INT))
39+
#if (QBCAPPOW < 7) || (defined(ENABLE_CPP_INT) && (((QBCAPPOW < 8) && defined(__SIZEOF_INT128__)) || \
40+
((QBCAPPOW > 7) && defined(BOOST_AVAILABLE))))
4141
inline void bi_not_ip(bitCapInt* left) { *left = ~(*left); }
4242
inline void bi_and_ip(bitCapInt* left, const bitCapInt& right) { *left &= right; }
4343
inline void bi_or_ip(bitCapInt* left, const bitCapInt& right) { *left |= right; }
@@ -145,7 +145,7 @@ inline bitLenInt popCountOcl(bitCapIntOcl n)
145145
#endif
146146
}
147147

148-
#if (QBCAPPOW < 7) || ((QBCAPPOW < 8) && defined(__SIZEOF_INT128__))
148+
#if (QBCAPPOW < 7) || ((QBCAPPOW < 8) && defined(__SIZEOF_INT128__)) && defined(ENABLE_CPP_INT)
149149
inline int bi_log2(const bitCapInt& n) { return log2Ocl((bitCapIntOcl)n); }
150150
#elif (QBCAPPOW > 7) && defined(BOOST_AVAILABLE) && defined(ENABLE_CPP_INT)
151151
inline int bi_log2(const bitCapInt& n) { return boost::multiprecision::msb(n); }

0 commit comments

Comments
 (0)