Home
last modified time | relevance | path

Searched refs:bit_cast (Results 1 – 23 of 23) sorted by relevance

/art/test/642-fp-callees/
Dfp_callees.cc47 CHECK_EQ(bit_cast<int64_t>(a), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
49 CHECK_EQ(bit_cast<int64_t>(b), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
51 CHECK_EQ(bit_cast<int64_t>(c), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
53 CHECK_EQ(bit_cast<int64_t>(d), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
55 CHECK_EQ(bit_cast<int64_t>(e), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
57 CHECK_EQ(bit_cast<int64_t>(f), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
59 CHECK_EQ(bit_cast<int64_t>(g), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
61 CHECK_EQ(bit_cast<int64_t>(h), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
63 CHECK_EQ(bit_cast<int64_t>(i), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
65 CHECK_EQ(bit_cast<int64_t>(j), bit_cast<int64_t>(temp)); in Java_Main_holdFpTemporaries()
[all …]
/art/compiler/jni/
Djni_compiler_test.cc2068 jint i11 = bit_cast<jint, jfloat>(f1); in JNI_TEST_CRITICAL()
2070 jint i12 = bit_cast<jint, jfloat>(f2); in JNI_TEST_CRITICAL()
2072 jint i13 = bit_cast<jint, jfloat>(f3); in JNI_TEST_CRITICAL()
2074 jint i14 = bit_cast<jint, jfloat>(f4); in JNI_TEST_CRITICAL()
2076 jint i15 = bit_cast<jint, jfloat>(f5); in JNI_TEST_CRITICAL()
2078 jint i16 = bit_cast<jint, jfloat>(f6); in JNI_TEST_CRITICAL()
2080 jint i17 = bit_cast<jint, jfloat>(f7); in JNI_TEST_CRITICAL()
2082 jint i18 = bit_cast<jint, jfloat>(f8); in JNI_TEST_CRITICAL()
2084 jint i19 = bit_cast<jint, jfloat>(f9); in JNI_TEST_CRITICAL()
2086 jint i20 = bit_cast<jint, jfloat>(f10); in JNI_TEST_CRITICAL()
[all …]
/art/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc66 uint32_t saved_local_ref_cookie = bit_cast<uint32_t>(env->GetLocalRefCookie()); in JniMethodFastStart()
81 uint32_t saved_local_ref_cookie = bit_cast<uint32_t>(env->GetLocalRefCookie()); in JniMethodStart()
133 env->SetLocalRefCookie(bit_cast<IRTSegmentState>(saved_local_ref_cookie)); in PopLocalReferences()
264 double d = bit_cast<double, uint64_t>(result_f); in GenericJniMethodEnd()
265 return bit_cast<uint32_t, float>(static_cast<float>(d)); in GenericJniMethodEnd()
Dquick_trampoline_entrypoints.cc1532 PushGpr(static_cast<int64_t>(bit_cast<int32_t, uint32_t>(val))); in AdvanceInt()
1540 PushStack(static_cast<int64_t>(bit_cast<int32_t, uint32_t>(val))); in AdvanceInt()
1600 AdvanceInt(bit_cast<uint32_t, float>(val)); in AdvanceFloat()
1606 PushFpr8(bit_cast<uint64_t, double>(val)); in AdvanceFloat()
1609 PushFpr8(static_cast<uint64_t>(bit_cast<uint32_t, float>(val))); in AdvanceFloat()
1620 PushStack(static_cast<uintptr_t>(bit_cast<uint64_t, double>(val))); in AdvanceFloat()
1622 PushStack(static_cast<uintptr_t>(bit_cast<uint32_t, float>(val))); in AdvanceFloat()
/art/test/454-get-vreg/
Dget_vreg_jni.cc65 uint32_t cast = bit_cast<uint32_t, float>(1.0f); in VisitFrame()
109 uint64_t cast = bit_cast<uint64_t, double>(2.0); in VisitFrame()
/art/libartbase/base/
Dmemory_region.h90 return bit_cast<T, U>(equivalent_unsigned_integer_value); in LoadUnaligned()
99 U equivalent_unsigned_integer_value = bit_cast<U, T>(value); in StoreUnaligned()
Dcasts.h89 inline Dest bit_cast(const Source& source) { in bit_cast() function
/art/test/457-regs/
Dregs_jni.cc75 uint32_t cast = bit_cast<uint32_t, float>(4.0f); in VisitFrame()
144 int32_t cast = bit_cast<int32_t, float>(float_value); in Java_PhiLiveness_regsNativeCallWithParameters()
/art/compiler/optimizing/
Dssa_builder.cc610 float value = bit_cast<float, int32_t>(constant->GetValue()); in GetFloatEquivalent()
617 DCHECK_EQ((bit_cast<int32_t, float>(result->GetValue())), constant->GetValue()); in GetFloatEquivalent()
632 double value = bit_cast<double, int64_t>(constant->GetValue()); in GetDoubleEquivalent()
639 DCHECK_EQ((bit_cast<int64_t, double>(result->GetValue())), constant->GetValue()); in GetDoubleEquivalent()
Dcode_generator.h542 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt32ValueOf()
552 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt64ValueOf()
557 return bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); in GetInt64ValueOf()
Dnodes.h638 return CreateConstant(bit_cast<int32_t, float>(value), &cached_float_constants_, dex_pc);
641 return CreateConstant(bit_cast<int64_t, double>(value), &cached_double_constants_, dex_pc);
3301 return static_cast<uint64_t>(bit_cast<uint32_t, float>(value_));
3312 return bit_cast<uint32_t, float>(value_) == bit_cast<uint32_t, float>((-1.0f));
3324 return bit_cast<uint32_t, float>(value_) == bit_cast<uint32_t, float>(0.0f);
3327 return bit_cast<uint32_t, float>(value_) == bit_cast<uint32_t, float>(1.0f);
3345 value_(bit_cast<float, int32_t>(value)) {
3359 uint64_t GetValueAsUint64() const override { return bit_cast<uint64_t, double>(value_); }
3369 return bit_cast<uint64_t, double>(value_) == bit_cast<uint64_t, double>((-1.0));
3381 return bit_cast<uint64_t, double>(value_) == bit_cast<uint64_t, double>((0.0));
[all …]
Dcode_generator.cc1409 int64_t value = bit_cast<int64_t, double>(current->AsDoubleConstant()->GetValue()); in EmitVRegInfo()
1421 int32_t value = bit_cast<int32_t, float>(current->AsFloatConstant()->GetValue()); in EmitVRegInfo()
Dcode_generator_x86_64.cc5132 bit_cast<int32_t, float>(value.GetConstant()->AsFloatConstant()->GetValue()); in HandleFieldSet()
5143 bit_cast<int64_t, double>(value.GetConstant()->AsDoubleConstant()->GetValue()); in HandleFieldSet()
5699 int32_t v = bit_cast<int32_t, float>(value.GetConstant()->AsFloatConstant()->GetValue()); in VisitArraySet()
5714 bit_cast<int64_t, double>(value.GetConstant()->AsDoubleConstant()->GetValue()); in VisitArraySet()
6019 Immediate imm(bit_cast<int32_t, float>(fp_value)); in EmitMove()
6025 int64_t value = bit_cast<int64_t, double>(fp_value); in EmitMove()
7766 Load32BitValue(dest, bit_cast<int32_t, float>(value)); in Load32BitValue()
7770 Load64BitValue(dest, bit_cast<int64_t, double>(value)); in Load64BitValue()
Dintrinsics_x86.cc435 __ comiss(t2, codegen_->LiteralInt32Address(bit_cast<int32_t, float>(0.5f), in VisitMathRoundFloat()
439 __ addss(t1, codegen_->LiteralInt32Address(bit_cast<int32_t, float>(1.0f), in VisitMathRoundFloat()
445 __ pushl(Immediate(bit_cast<int32_t, float>(0.5f))); in VisitMathRoundFloat()
446 __ pushl(Immediate(bit_cast<int32_t, float>(1.0f))); in VisitMathRoundFloat()
Dinstruction_simplifier.cc1779 if (CanDivideByReciprocalMultiplyDouble(bit_cast<int64_t, double>(value))) { in VisitDiv()
1785 if (CanDivideByReciprocalMultiplyFloat(bit_cast<int32_t, float>(value))) { in VisitDiv()
Dnodes.cc898 int32_t value = bit_cast<int32_t, float>(constant->GetValue()); in CacheFloatConstant()
904 int64_t value = bit_cast<int64_t, double>(constant->GetValue()); in CacheDoubleConstant()
Dcode_generator_x86.cc6560 int32_t v = bit_cast<int32_t, float>(value.GetConstant()->AsFloatConstant()->GetValue()); in VisitArraySet()
6576 int64_t v = bit_cast<int64_t, double>(value.GetConstant()->AsDoubleConstant()->GetValue()); in VisitArraySet()
6885 int32_t value = bit_cast<int32_t, float>(fp_value); in EmitMove()
6919 int64_t value = bit_cast<int64_t, double>(dbl_value); in EmitMove()
Dcode_generator_arm_vixl.cc4016 __ Vmov(constant_d, bit_cast<double, int64_t>(k2Pow32EncodingForDouble)); in VisitTypeConversion()
7241 uint64_t int_value = bit_cast<uint64_t, double>(value); in EmitMove()
7259 __ Mov(temp, bit_cast<int32_t, float>(value)); in EmitMove()
/art/runtime/
Dsubtype_check.h497 << "full new: " << bit_cast<uint32_t>(new_value) in WriteSubtypeCheckBits()
498 << ", full old: " << bit_cast<uint32_t>(full_old); in WriteSubtypeCheckBits()
/art/runtime/interpreter/
Dunstarted_runtime_test.cc208 int64_t result_int64t = bit_cast<int64_t, double>(result.GetD()); in TestCeilFloor()
209 int64_t expect_int64t = bit_cast<int64_t, double>(test_pairs[i][1]); in TestCeilFloor()
Dunstarted_runtime.cc1157 result->SetJ(bit_cast<int64_t, double>(in)); in UnstartedDoubleDoubleToRawLongBits()
1803 result->SetD(bit_cast<double>(long_input)); in UnstartedJNIDoubleLongBitsToDouble()
/art/compiler/utils/x86/
Dassembler_x86.cc3775 int64_t constant = bit_cast<int64_t, double>(value); in LoadDoubleConstant()
3975 return AddInt64(bit_cast<int64_t, double>(v)); in AddDouble()
3980 return AddInt32(bit_cast<int32_t, float>(v)); in AddFloat()
/art/compiler/utils/x86_64/
Dassembler_x86_64.cc5095 int64_t constant = bit_cast<int64_t, double>(value); in LoadDoubleConstant()
5446 return AddInt64(bit_cast<int64_t, double>(v)); in AddDouble()
5451 return AddInt32(bit_cast<int32_t, float>(v)); in AddFloat()