#endif
#define EXTRACT_BITS(value, mask) \
- ((value >> \
- llvm::countTrailingZeros(static_cast<uint32_t>(mask), llvm::ZB_Width)) & \
+ ((value >> llvm::countTrailingZeros(static_cast<uint32_t>(mask))) & \
(((1 << llvm::countPopulation(static_cast<uint32_t>(mask)))) - 1))
// constructor
/// Returns the bit number of the most significant set bit of a part.
/// If the input number has no bits set -1U is returned.
static unsigned partMSB(APInt::WordType value) {
- return findLastSet(value, ZB_Max);
+ return findLastSet(value);
}
/// Returns the bit number of the least significant set bit of a part. If the
/// input number has no bits set -1U is returned.
static unsigned partLSB(APInt::WordType value) {
- return findFirstSet(value, ZB_Max);
+ return findFirstSet(value);
}
/// Sets the least significant part of a bignum to the input value, and zeroes