summaryrefslogtreecommitdiffstats
path: root/compiler/utils/x86/assembler_x86.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-02-13 19:23:55 -0800
committerAndreas Gampe <agampe@google.com>2015-02-18 16:50:22 -0800
commitab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd (patch)
treea2d211ec81294adab2981d0179c8f04be3e8c8c4 /compiler/utils/x86/assembler_x86.h
parent6e27f82193a8f54cd8ecdc8fb2c4c1adadafbaf4 (diff)
downloadandroid_art-ab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd.tar.gz
android_art-ab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd.tar.bz2
android_art-ab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd.zip
ART: Templatize IsInt & IsUint
Ensure that things are used correctly. Change-Id: I76f082b32dcee28bbfb4c519daa401ac595873b3
Diffstat (limited to 'compiler/utils/x86/assembler_x86.h')
-rw-r--r--compiler/utils/x86/assembler_x86.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/utils/x86/assembler_x86.h b/compiler/utils/x86/assembler_x86.h
index 3a44ace649..2dde90744e 100644
--- a/compiler/utils/x86/assembler_x86.h
+++ b/compiler/utils/x86/assembler_x86.h
@@ -35,10 +35,10 @@ class Immediate : public ValueObject {
int32_t value() const { return value_; }
- bool is_int8() const { return IsInt(8, value_); }
- bool is_uint8() const { return IsUint(8, value_); }
- bool is_int16() const { return IsInt(16, value_); }
- bool is_uint16() const { return IsUint(16, value_); }
+ bool is_int8() const { return IsInt<8>(value_); }
+ bool is_uint8() const { return IsUint<8>(value_); }
+ bool is_int16() const { return IsInt<16>(value_); }
+ bool is_uint16() const { return IsUint<16>(value_); }
private:
const int32_t value_;