diff --git a/svf/include/Util/SparseBitVector.h b/svf/include/Util/SparseBitVector.h index 83123622e..2bcd1f543 100644 --- a/svf/include/Util/SparseBitVector.h +++ b/svf/include/Util/SparseBitVector.h @@ -71,35 +71,39 @@ template struct TrailingZerosCounter }; #if defined(__GNUC__) || defined(_MSC_VER) -template struct TrailingZerosCounter { - static unsigned count(T Val, ZeroBehavior) { - if (Val == 0) - return 32; +template struct TrailingZerosCounter +{ + static unsigned count(T Val, ZeroBehavior) + { + if (Val == 0) + return 32; #if HAS_CTZ || defined(__GNUC__) - return __builtin_ctz(Val); + return __builtin_ctz(Val); #elif defined(_MSC_VER) - unsigned long Index; - _BitScanForward(&Index, Val); - return Index; + unsigned long Index; + _BitScanForward(&Index, Val); + return Index; #endif - } + } }; #if !defined(_MSC_VER) || defined(_M_X64) -template struct TrailingZerosCounter { - static unsigned count(T Val, ZeroBehavior) { - if (Val == 0) - return 64; +template struct TrailingZerosCounter +{ + static unsigned count(T Val, ZeroBehavior) + { + if (Val == 0) + return 64; #if HAS_CTZLL || defined(__GNUC__) - return __builtin_ctzll(Val); + return __builtin_ctzll(Val); #elif defined(_MSC_VER) - unsigned long Index; - _BitScanForward64(&Index, Val); - return Index; + unsigned long Index; + _BitScanForward64(&Index, Val); + return Index; #endif - } + } }; #endif #endif