Home
last modified time | relevance | path

Searched refs:IsAligned (Results 1 – 5 of 5) sorted by relevance

/frameworks/libs/binary_translation/base/
Dbit_util_test.cc44 static_assert(IsAligned(6, 2));
45 static_assert(!IsAligned(6, 4));
46 static_assert(IsAligned<2>(6));
47 static_assert(!IsAligned<4>(6));
48 static_assert(IsAligned<2>(RawInt8(6)));
49 static_assert(!IsAligned<4>(RawInt8(6)));
50 static_assert(IsAligned<2>(SatInt8(6)));
51 static_assert(!IsAligned<4>(SatInt8(6)));
52 static_assert(IsAligned<2>(Int8(6)));
53 static_assert(!IsAligned<4>(Int8(6)));
Dforever_alloc_test.cc31 ASSERT_TRUE(IsAligned(p, align)); in CheckOneAllocation()
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h141 constexpr bool IsAligned(T x) { in IsAligned() function
146 constexpr bool IsAligned(T x, size_t align) { in IsAligned() function
151 constexpr bool IsAligned(Raw<T> x) { in IsAligned() function
152 return IsAligned<kAlign>(x.value); in IsAligned()
156 constexpr bool IsAligned(Saturating<T> x) { in IsAligned() function
157 return IsAligned<kAlign>(x.value); in IsAligned()
161 constexpr bool IsAligned(Wrapping<T> x) { in IsAligned() function
162 return IsAligned<kAlign>(x.value); in IsAligned()
167 constexpr bool IsAligned(T* p, size_t align) { in IsAligned() function
168 return IsAligned<kAlign>(reinterpret_cast<uintptr_t>(p), align); in IsAligned()
[all …]
Dmmap.h42 return IsAligned(x, kPageSize); in IsAlignedPageSize()
/frameworks/libs/binary_translation/interpreter/riscv64/
Dinterpreter.h923 if (!IsAligned<kIndexRegistersInvolved>(args.idx)) { in OpVector()
1039 if (!IsAligned<kNumRegistersInGroup>(dst)) {
1214 if (!IsAligned<kRegistersInvolved>(dst | src1)) { in OpVectorGather()
2141 if (!IsAligned<kRegistersInvolved>(args.src2)) { in OpVector()
2830 if (!IsAligned<kIndexRegistersInvolved>(args.idx)) { in OpVector()
2895 if (!IsAligned<kNumRegistersInGroup>(data)) {
3012 if (!IsAligned<kRegistersInvolved>(dst)) { in OpVectorVidv()
3153 if (!IsAligned<kRegistersInvolved>(dst | src)) { in OpVectorVmvXrv()
3218 if (!IsAligned<kRegistersInvolved>(OrValuesOnlyForType<Vec>(args...))) { in OpVectorToMask()
3280 if (!IsAligned<kRegistersInvolved>(dst | src | (dst_mask | ... | 0))) { in OpVectorv()
[all …]