We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a28d8c commit 7313c3bCopy full SHA for 7313c3b
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensor.h
@@ -122,7 +122,7 @@ class I64BitSet {
122
unsigned m = llvm::countr_zero(storage);
123
return m == 64 ? -1 : m;
124
}
125
- unsigned max() const { return 64 - llvm::countl_zero(storage); }
+ unsigned max() const { return llvm::bit_width(storage); }
126
unsigned count() const { return llvm::popcount(storage); }
127
bool empty() const { return storage == 0; }
128
};
0 commit comments