summaryrefslogtreecommitdiff
path: root/disassembler/disassembler.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-07-28 16:19:51 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-07-23 19:30:00 +0000
commit37f1c7c6e084c1160eb1b156ab63ac114a82625a (patch)
tree1cd4cc18babfbb16ab908f23929fa88d7678f06b /disassembler/disassembler.h
parent98cc1e552c2ccbe5d51bc81d49e79119280f5416 (diff)
parent3c7bb98698f77af10372cf31824d3bb115d9bf0f (diff)
Merge "Implement array get and array put in optimizing."
Diffstat (limited to 'disassembler/disassembler.h')
-rw-r--r--disassembler/disassembler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/disassembler/disassembler.h b/disassembler/disassembler.h
index 7547ab722b..183e692ff2 100644
--- a/disassembler/disassembler.h
+++ b/disassembler/disassembler.h
@@ -43,6 +43,10 @@ class Disassembler {
DISALLOW_COPY_AND_ASSIGN(Disassembler);
};
+static inline bool HasBitSet(uint32_t value, uint32_t bit) {
+ return (value & (1 << bit)) != 0;
+}
+
} // namespace art
#endif // ART_DISASSEMBLER_DISASSEMBLER_H_