projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the types for NumElements variables, and add a comment
[oota-llvm.git]
/
lib
/
Support
/
APInt.cpp
diff --git
a/lib/Support/APInt.cpp
b/lib/Support/APInt.cpp
index ef35e1c554c8c20d74b2a3a2d33b075229700bcf..38b379005af0f77a910b5ba3accc4b82f37555f4 100644
(file)
--- a/
lib/Support/APInt.cpp
+++ b/
lib/Support/APInt.cpp
@@
-1113,7
+1113,7
@@
APInt APInt::ashr(uint32_t shiftAmt) const {
// issues in the algorithm below.
if (shiftAmt == BitWidth) {
if (isNegative())
// issues in the algorithm below.
if (shiftAmt == BitWidth) {
if (isNegative())
- return APInt(BitWidth, -1ULL);
+ return APInt(BitWidth, -1ULL
, true
);
else
return APInt(BitWidth, 0);
}
else
return APInt(BitWidth, 0);
}
@@
-2048,7
+2048,7
@@
std::string APInt::toString(uint8_t radix, bool wantSigned) const {
result = "-";
insert_at = 1;
}
result = "-";
insert_at = 1;
}
- if (tmp ==
APInt(tmp.getBitWidth(), 0)
)
+ if (tmp ==
zero
)
result = "0";
else while (tmp.ne(zero)) {
APInt APdigit(1,0);
result = "0";
else while (tmp.ne(zero)) {
APInt APdigit(1,0);