diff options
author | David Brazdil <dbrazdil@google.com> | 2015-03-26 15:18:57 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-03-26 15:18:58 +0000 |
commit | cac51526bbd03947676a8d49700425b19a57e447 (patch) | |
tree | 40d7fd63d527286a82c6e6d0a288c0a8a840d0b3 | |
parent | aa23b169f8c996380bcee3a7032da2599c6211ec (diff) | |
parent | 74fc513982fa74b1120f7b8546fc825fc406e1b1 (diff) | |
download | art-cac51526bbd03947676a8d49700425b19a57e447.zip art-cac51526bbd03947676a8d49700425b19a57e447.tar.gz art-cac51526bbd03947676a8d49700425b19a57e447.tar.bz2 |
Merge "ART: Define IsInt when N==kBitsPerIntPtrT"
-rw-r--r-- | runtime/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ static inline bool IsAlignedParam(T x, int n) { // 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); |