commit | cac51526bbd03947676a8d49700425b19a57e447 | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Thu Mar 26 15:18:57 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Mar 26 15:18:58 2015 +0000 |
tree | 40d7fd63d527286a82c6e6d0a288c0a8a840d0b3 | |
parent | aa23b169f8c996380bcee3a7032da2599c6211ec [diff] | |
parent | 74fc513982fa74b1120f7b8546fc825fc406e1b1 [diff] |
Merge "ART: Define IsInt when N==kBitsPerIntPtrT"
diff --git a/runtime/utils.h b/runtime/utils.h index e20412e..1a7fdfb 100644 --- a/runtime/utils.h +++ b/runtime/utils.h
@@ -110,6 +110,7 @@ // Check whether an N-bit two's-complement representation can hold value. static inline bool IsInt(int N, intptr_t value) { + if (N == kBitsPerIntPtrT) return true; CHECK_LT(0, N); CHECK_LT(N, kBitsPerIntPtrT); intptr_t limit = static_cast<intptr_t>(1) << (N - 1);