Home
last modified time | relevance | path

Searched refs:int32_t (Results 1 – 25 of 340) sorted by relevance

12345678910>>...14

/art/runtime/interpreter/
Dsafe_math_test.cc28 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max(), 1), in TEST()
29 std::numeric_limits<int32_t>::min()); in TEST()
34 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max() - 1, 1), in TEST()
35 std::numeric_limits<int32_t>::max()); in TEST()
39 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::min() + 1, -1), in TEST()
40 std::numeric_limits<int32_t>::min()); in TEST()
44 EXPECT_EQ(SafeAdd(int32_t(-1), -1), -2); in TEST()
47 EXPECT_EQ(SafeAdd(int32_t(1), 1), 2); in TEST()
50 EXPECT_EQ(SafeAdd(int32_t(-1), 1), 0); in TEST()
53 EXPECT_EQ(SafeAdd(int32_t(1), -1), 0); in TEST()
[all …]
/art/libartbase/base/
Dbit_utils_test.cc178 static_cast<int64_t>(std::numeric_limits<int32_t>::min()) - 1;
180 static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1;
185 EXPECT_FALSE(IsInt<int32_t>(1, -2)); in TEST()
186 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
187 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
188 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
189 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
190 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
191 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
192 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
[all …]
/art/runtime/mirror/
Dstring.h86 int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength()
91 int32_t GetCount() REQUIRES_SHARED(Locks::mutator_lock_) { in GetCount()
95 void SetCount(int32_t new_count) REQUIRES_SHARED(Locks::mutator_lock_) { in SetCount()
101 int32_t GetHashCode() REQUIRES_SHARED(Locks::mutator_lock_);
104 int32_t ComputeHashCode() REQUIRES_SHARED(Locks::mutator_lock_);
106 int32_t GetUtfLength() REQUIRES_SHARED(Locks::mutator_lock_);
108 uint16_t CharAt(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_);
119 int32_t byte_length,
121 int32_t offset,
122 int32_t high_byte,
[all …]
Dobject_array.h36 int32_t length,
42 int32_t length)
47 ALWAYS_INLINE ObjPtr<T> Get(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
55 ALWAYS_INLINE void Set(int32_t i, ObjPtr<T> object) REQUIRES_SHARED(Locks::mutator_lock_);
59 ALWAYS_INLINE void Set(int32_t i, ObjPtr<T> object) NO_THREAD_SAFETY_ANALYSIS;
67 ALWAYS_INLINE void SetWithoutChecks(int32_t i, ObjPtr<T> object) NO_THREAD_SAFETY_ANALYSIS;
72 ALWAYS_INLINE void SetWithoutChecksAndWriteBarrier(int32_t i, ObjPtr<T> object)
77 ALWAYS_INLINE ObjPtr<T> GetWithoutChecks(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
80 void AssignableMemmove(int32_t dst_pos,
82 int32_t src_pos,
[all …]
Dstring-alloc-inl.h39 explicit SetStringCountVisitor(int32_t count) : count_(count) { in SetStringCountVisitor()
51 const int32_t count_;
57 SetStringCountAndBytesVisitor(int32_t count, Handle<ByteArray> src_array, int32_t offset, in SetStringCountAndBytesVisitor()
58 int32_t high_byte) in SetStringCountAndBytesVisitor()
68 int32_t length = String::GetLengthFromCount(count_); in operator()
84 const int32_t count_;
86 const int32_t offset_;
87 const int32_t high_byte_;
93 SetStringCountAndValueVisitorFromCharArray(int32_t count, Handle<CharArray> src_array, in SetStringCountAndValueVisitorFromCharArray()
94 int32_t offset) : in SetStringCountAndValueVisitorFromCharArray()
[all …]
Dstring.cc37 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf()
38 int32_t count = GetLength(); in FastIndexOf()
52 int32_t hash_code = 0; in ComputeHashCode()
62 int32_t String::GetUtfLength() { in GetUtfLength()
70 inline bool String::AllASCIIExcept(const uint16_t* chars, int32_t length, uint16_t non_ascii) { in AllASCIIExcept()
72 for (int32_t i = 0; i < length; ++i) { in AllASCIIExcept()
81 int32_t length = src->GetLength(); in DoReplace()
90 const int32_t length_with_flag = String::GetFlaggedCount(length, compressible); in DoReplace()
125 int32_t length = string->GetLength(); in AllocFromStrings()
126 int32_t length2 = string2->GetLength(); in AllocFromStrings()
[all …]
Darray.h46 int32_t component_count,
61 ALWAYS_INLINE int32_t GetLength() REQUIRES_SHARED(Locks::mutator_lock_) { in GetLength()
65 void SetLength(int32_t length) REQUIRES_SHARED(Locks::mutator_lock_) { in SetLength()
95 void* GetRawData(size_t component_size, int32_t index) in GetRawData()
102 void* GetRawData(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_) { in GetRawData()
108 const void* GetRawData(size_t component_size, int32_t index) const { in GetRawData()
114 const void* GetRawData(int32_t index) const { in GetRawData()
123 ALWAYS_INLINE bool CheckIsValidIndex(int32_t index) REQUIRES_SHARED(Locks::mutator_lock_);
125 ObjPtr<Array> CopyOf(Thread* self, int32_t new_length) REQUIRES_SHARED(Locks::mutator_lock_)
133 void ThrowArrayIndexOutOfBoundsException(int32_t index)
[all …]
Dstring-inl.h45 inline uint16_t String::CharAt(int32_t index) { in CharAt()
46 int32_t count = GetLength(); in CharAt()
59 int32_t String::FastIndexOf(MemoryType* chars, int32_t ch, int32_t start) { in FastIndexOf()
70 inline int32_t String::GetHashCode() { in GetHashCode()
71 int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); in GetHashCode()
Dmethod_type.cc63 const int32_t dst_ptypes_count = method_type->GetNumberOfPTypes() - 1; in CloneWithoutLeadingParameter()
68 for (int32_t i = 0; i < dst_ptypes_count; ++i) { in CloneWithoutLeadingParameter()
77 int32_t start_index) { in CollectTrailingArguments()
78 int32_t ptypes_length = method_type->GetNumberOfPTypes(); in CollectTrailingArguments()
91 for (int32_t i = 0; i < start_index; ++i) { in CollectTrailingArguments()
100 const int32_t p_types_length = p_types->GetLength(); in NumberOfVRegs()
105 for (int32_t i = 0; i < p_types_length; ++i) { in NumberOfVRegs()
116 const int32_t params_length = p_types->GetLength(); in IsExactMatch()
122 for (int32_t i = 0; i < params_length; ++i) { in IsExactMatch()
132 const int32_t params_length = p_types->GetLength(); in IsConvertible()
[all …]
Diftable.h30 ALWAYS_INLINE ObjPtr<Class> GetInterface(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
32 ALWAYS_INLINE void SetInterface(int32_t i, ObjPtr<Class> interface)
37 ObjPtr<PointerArray> GetMethodArrayOrNull(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
41 ObjPtr<PointerArray> GetMethodArray(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
45 size_t GetMethodArrayCount(int32_t i) REQUIRES_SHARED(Locks::mutator_lock_);
47 void SetMethodArray(int32_t i, ObjPtr<PointerArray> arr) REQUIRES_SHARED(Locks::mutator_lock_);
/art/libartpalette/include/palette/
Dpalette_method_list.h25 M(PaletteGetVersion, /*out*/int32_t* version) \
26 M(PaletteSchedSetPriority, int32_t tid, int32_t java_priority) \
27 M(PaletteSchedGetPriority, int32_t tid, /*out*/int32_t* java_priority) \
29 M(PaletteTraceEnabled, /*out*/int32_t* enabled) \
32 M(PaletteTraceIntegerValue, const char* name, int32_t value)
/art/libartpalette/system/
Dpalette_fake.cc27 enum PaletteStatus PaletteGetVersion(int32_t* version) { in PaletteGetVersion()
34 static std::map<int32_t, int32_t> g_tid_priority_map;
36 enum PaletteStatus PaletteSchedSetPriority(int32_t tid, int32_t priority) { in PaletteSchedSetPriority()
46 enum PaletteStatus PaletteSchedGetPriority(int32_t tid, in PaletteSchedGetPriority()
47 /*out*/int32_t* priority) { in PaletteSchedGetPriority()
61 enum PaletteStatus PaletteTraceEnabled(/*out*/int32_t* enabled) { in PaletteTraceEnabled()
75 int32_t value ATTRIBUTE_UNUSED) { in PaletteTraceIntegerValue()
Dpalette_system.h25 static constexpr int32_t kPaletteVersion = 1;
28 static constexpr int32_t kNormalManagedThreadPriority = 5;
29 static constexpr int32_t kMinManagedThreadPriority = 1;
30 static constexpr int32_t kMaxManagedThreadPriority = 10;
31 static constexpr int32_t kNumManagedThreadPriorities =
/art/runtime/entrypoints/quick/
Dquick_entrypoints_list.h23 V(AllocArrayResolved, void*, mirror::Class*, int32_t) \
24 V(AllocArrayResolved8, void*, mirror::Class*, int32_t) \
25 V(AllocArrayResolved16, void*, mirror::Class*, int32_t) \
26 V(AllocArrayResolved32, void*, mirror::Class*, int32_t) \
27 V(AllocArrayResolved64, void*, mirror::Class*, int32_t) \
34 V(AllocStringFromBytes, void*, void*, int32_t, int32_t, int32_t) \
35 V(AllocStringFromChars, void*, int32_t, int32_t, void*) \
52 V(Set32Instance, int, uint32_t, void*, int32_t) \
53 V(Set32Static, int, uint32_t, int32_t) \
73 V(AputObject, void, mirror::Array*, int32_t, mirror::Object*) \
[all …]
Dquick_alloc_entrypoints.cc95 mirror::Class* klass, int32_t component_count, Thread* self) \
102 mirror::ByteArray* byte_array, int32_t high, int32_t offset, int32_t byte_count, \
112 int32_t offset, int32_t char_count, mirror::CharArray* char_array, Thread* self) \
140 extern "C" void* art_quick_alloc_array_resolved##suffix(mirror::Class* klass, int32_t); \
141 extern "C" void* art_quick_alloc_array_resolved8##suffix(mirror::Class* klass, int32_t); \
142 extern "C" void* art_quick_alloc_array_resolved16##suffix(mirror::Class* klass, int32_t); \
143 extern "C" void* art_quick_alloc_array_resolved32##suffix(mirror::Class* klass, int32_t); \
144 extern "C" void* art_quick_alloc_array_resolved64##suffix(mirror::Class* klass, int32_t); \
149 extern "C" void* art_quick_alloc_string_from_bytes##suffix(void*, int32_t, int32_t, int32_t); \
150 extern "C" void* art_quick_alloc_string_from_chars##suffix(int32_t, int32_t, void*); \
[all …]
Dquick_default_externs.h49 extern "C" int art_quick_set32_instance(uint32_t, void*, int32_t);
50 extern "C" int art_quick_set32_static(uint32_t, int32_t);
71 extern "C" void art_quick_aput_obj_with_null_and_bound_check(art::mirror::Array*, int32_t,
73 extern "C" void art_quick_aput_obj_with_bound_check(art::mirror::Array*, int32_t,
75 extern "C" void art_quick_aput_obj(art::mirror::Array*, int32_t, art::mirror::Object*);
102 extern "C" int32_t art_quick_indexof(void*, uint32_t, uint32_t);
103 extern "C" int32_t art_quick_string_compareto(void*, void*);
126 extern "C" void art_quick_throw_array_bounds(int32_t index, int32_t limit);
131 extern "C" void art_quick_throw_string_bounds(int32_t index, int32_t limit);
/art/tools/dmtracedump/
Dtracedump.cc40 int32_t versionNumber;
133 int32_t threadId;
141 int32_t numCalls;
148 int32_t numMethods;
150 int32_t numCalls[2]; /* 0=normal, 1=recursive */
155 int32_t numMethods;
157 int32_t numCalls[2]; /* 0=normal, 1=recursive */
169 int32_t lineNum;
176 int32_t numCalls[2]; /* 0=normal, 1=recursive */
177 int32_t index; /* used after sorting to number methods */
[all …]
Dcreatetesttrace.cc44 int32_t versionNumber = VERSION;
45 int32_t verbose = 0;
63 int32_t threadId;
79 int32_t indentLevel;
124 int32_t numRecords = 0; in parseInputFile()
125 int32_t maxThreadId = 1; in parseInputFile()
126 int32_t maxFrames = 0; in parseInputFile()
134 int32_t threadId = strtoul(cp, &cp, 0); in parseInputFile()
141 int32_t numThreads = maxThreadId + 1; in parseInputFile()
147 for (int32_t ii = 0; ii < numThreads; ++ii) { in parseInputFile()
[all …]
/art/compiler/utils/
Dswap_space_test.cc44 SwapVector<int32_t> v(alloc); in SwapTest()
46 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
51 SwapVector<int32_t> v2(alloc); in SwapTest()
53 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
58 SwapVector<int32_t> v3(alloc); in SwapTest()
60 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
66 for (int32_t i = 0; i < 1000000; ++i) { in SwapTest()
/art/compiler/utils/arm/
Dassembler_arm_vixl.h205 int32_t offset);
206 void StoreSToOffset(vixl32::SRegister source, vixl32::Register base, int32_t offset);
207 void StoreDToOffset(vixl32::DRegister source, vixl32::Register base, int32_t offset);
209 void LoadImmediate(vixl32::Register dest, int32_t value);
213 int32_t offset);
214 void LoadSFromOffset(vixl32::SRegister reg, vixl32::Register base, int32_t offset);
215 void LoadDFromOffset(vixl32::DRegister reg, vixl32::Register base, int32_t offset);
224 bool CanSplitLoadStoreOffset(int32_t allowed_offset_bits,
225 int32_t offset,
226 /*out*/ int32_t* add_to_base,
[all …]
/art/runtime/
Ddex_register_location.h31 enum class Kind : int32_t {
42 DexRegisterLocation(Kind kind, int32_t value) : kind_(kind), value_(value) {} in DexRegisterLocation()
51 int32_t GetValue() const { return value_; } in GetValue()
61 int32_t GetStackOffsetInBytes() const { in GetStackOffsetInBytes()
66 int32_t GetConstant() const { in GetConstant()
71 int32_t GetMachineRegister() const { in GetMachineRegister()
83 int32_t value_;
/art/runtime/arch/
Dmemcmp16.cc22 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count);
23 int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count) { in memcmp16_generic_static()
26 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in memcmp16_generic_static()
36 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16Testing()
Dmemcmp16.h41 static inline int32_t MemCmp16(const uint16_t* s0, const uint16_t* s1, size_t count) { in MemCmp16()
44 return static_cast<int32_t>(s0[i]) - static_cast<int32_t>(s1[i]); in MemCmp16()
50 extern "C" int32_t memcmp16_generic_static(const uint16_t* s0, const uint16_t* s1, size_t count);
60 int32_t MemCmp16Testing(const uint16_t* s0, const uint16_t* s1, size_t count);
/art/libdexfile/external/
Ddex_file_supp_test.cc189 EXPECT_EQ(info.offset, int32_t{0x100}); in TEST()
190 EXPECT_EQ(info.len, int32_t{8}); in TEST()
194 EXPECT_EQ(info.offset, int32_t{0x118}); in TEST()
195 EXPECT_EQ(info.len, int32_t{2}); in TEST()
200 EXPECT_EQ(info.offset, int32_t{0x100}); in TEST()
201 EXPECT_EQ(info.len, int32_t{8}); in TEST()
210 EXPECT_EQ(info.offset, int32_t{0x100}); in TEST()
211 EXPECT_EQ(info.len, int32_t{8}); in TEST()
215 EXPECT_EQ(info.offset, int32_t{0x118}); in TEST()
216 EXPECT_EQ(info.len, int32_t{2}); in TEST()
[all …]
/art/runtime/entrypoints/
Dmath_entrypoints.cc43 extern "C" int32_t art_d2i(double d) { in art_d2i()
44 return art_float_to_integral<int32_t, double>(d); in art_d2i()
47 extern "C" int32_t art_f2i(float f) { in art_f2i()
48 return art_float_to_integral<int32_t, float>(f); in art_f2i()

12345678910>>...14