Add an argument to APInt's magic udiv calculation to specify the number of bits that are known zero in the divided number.

This will come in handy soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2011-03-17 20:39:06 +00:00
parent 6a3dbd3b25
commit d9103df51b
3 changed files with 7 additions and 3 deletions

View File

@@ -1372,7 +1372,7 @@ public:
/// Calculate the magic number for unsigned division by a constant.
struct mu;
mu magicu() const;
mu magicu(unsigned LeadingZeros = 0) const;
/// @}
/// @name Building-block Operations for APInt and APFloat