Home
last modified time | relevance | path

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

12

/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.cc1961 jint i11 = bit_cast<jint, jfloat>(f1); in JNI_TEST_NORMAL_ONLY()
1963 jint i12 = bit_cast<jint, jfloat>(f2); in JNI_TEST_NORMAL_ONLY()
1965 jint i13 = bit_cast<jint, jfloat>(f3); in JNI_TEST_NORMAL_ONLY()
1967 jint i14 = bit_cast<jint, jfloat>(f4); in JNI_TEST_NORMAL_ONLY()
1969 jint i15 = bit_cast<jint, jfloat>(f5); in JNI_TEST_NORMAL_ONLY()
1971 jint i16 = bit_cast<jint, jfloat>(f6); in JNI_TEST_NORMAL_ONLY()
1973 jint i17 = bit_cast<jint, jfloat>(f7); in JNI_TEST_NORMAL_ONLY()
1975 jint i18 = bit_cast<jint, jfloat>(f8); in JNI_TEST_NORMAL_ONLY()
1977 jint i19 = bit_cast<jint, jfloat>(f9); in JNI_TEST_NORMAL_ONLY()
1979 jint i20 = bit_cast<jint, jfloat>(f10); in JNI_TEST_NORMAL_ONLY()
[all …]
/art/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc54 uint32_t saved_local_ref_cookie = bit_cast<uint32_t>(env->GetLocalRefCookie()); in JniMethodFastStart()
69 uint32_t saved_local_ref_cookie = bit_cast<uint32_t>(env->GetLocalRefCookie()); in JniMethodStart()
122 env->SetLocalRefCookie(bit_cast<IRTSegmentState>(saved_local_ref_cookie)); in PopLocalReferences()
231 double d = bit_cast<double, uint64_t>(result_f); in GenericJniMethodEnd()
232 return bit_cast<uint32_t, float>(static_cast<float>(d)); in GenericJniMethodEnd()
Dquick_trampoline_entrypoints.cc1688 PushGpr(static_cast<int64_t>(bit_cast<int32_t, uint32_t>(val))); in AdvanceInt()
1696 PushStack(static_cast<int64_t>(bit_cast<int32_t, uint32_t>(val))); in AdvanceInt()
1756 AdvanceInt(bit_cast<uint32_t, float>(val)); in AdvanceFloat()
1762 PushFpr8(bit_cast<uint64_t, double>(val)); in AdvanceFloat()
1765 PushFpr8(static_cast<uint64_t>(bit_cast<uint32_t, float>(val))); in AdvanceFloat()
1776 PushStack(static_cast<uintptr_t>(bit_cast<uint64_t, double>(val))); in AdvanceFloat()
1778 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/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/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.h90 inline Dest bit_cast(const Source& source) { in bit_cast() function
/art/compiler/optimizing/
Dssa_builder.cc591 float value = bit_cast<float, int32_t>(constant->GetValue()); in GetFloatEquivalent()
598 DCHECK_EQ((bit_cast<int32_t, float>(result->GetValue())), constant->GetValue()); in GetFloatEquivalent()
613 double value = bit_cast<double, int64_t>(constant->GetValue()); in GetDoubleEquivalent()
620 DCHECK_EQ((bit_cast<int64_t, double>(result->GetValue())), constant->GetValue()); in GetDoubleEquivalent()
Dcode_generator.h508 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt32ValueOf()
518 return bit_cast<int32_t, float>(constant->AsFloatConstant()->GetValue()); in GetInt64ValueOf()
523 return bit_cast<int64_t, double>(constant->AsDoubleConstant()->GetValue()); in GetInt64ValueOf()
Dnodes.h556 return CreateConstant(bit_cast<int32_t, float>(value), &cached_float_constants_, dex_pc);
559 return CreateConstant(bit_cast<int64_t, double>(value), &cached_double_constants_, dex_pc);
3039 return static_cast<uint64_t>(bit_cast<uint32_t, float>(value_)); in GetValueAsUint64()
3050 return bit_cast<uint32_t, float>(value_) == bit_cast<uint32_t, float>((-1.0f)); in IsMinusOne()
3062 return bit_cast<uint32_t, float>(value_) == bit_cast<uint32_t, float>(0.0f); in IsZeroBitPattern()
3065 return bit_cast<uint32_t, float>(value_) == bit_cast<uint32_t, float>(1.0f); in IsOne()
3083 value_(bit_cast<float, int32_t>(value)) { in HConstant()
3097 uint64_t GetValueAsUint64() const override { return bit_cast<uint64_t, double>(value_); } in GetValueAsUint64()
3107 return bit_cast<uint64_t, double>(value_) == bit_cast<uint64_t, double>((-1.0)); in IsMinusOne()
3119 return bit_cast<uint64_t, double>(value_) == bit_cast<uint64_t, double>((0.0)); in IsZeroBitPattern()
[all …]
Dcode_generator.cc1268 int64_t value = bit_cast<int64_t, double>(current->AsDoubleConstant()->GetValue()); in EmitEnvironment()
1280 int32_t value = bit_cast<int32_t, float>(current->AsFloatConstant()->GetValue()); in EmitEnvironment()
Dintrinsics_x86.cc478 __ comiss(t2, codegen_->LiteralInt32Address(bit_cast<int32_t, float>(0.5f), in VisitMathRoundFloat()
482 __ addss(t1, codegen_->LiteralInt32Address(bit_cast<int32_t, float>(1.0f), in VisitMathRoundFloat()
488 __ pushl(Immediate(bit_cast<int32_t, float>(0.5f))); in VisitMathRoundFloat()
489 __ pushl(Immediate(bit_cast<int32_t, float>(1.0f))); in VisitMathRoundFloat()
Dcode_generator_x86_64.cc4808 bit_cast<int32_t, float>(value.GetConstant()->AsFloatConstant()->GetValue()); in HandleFieldSet()
4819 bit_cast<int64_t, double>(value.GetConstant()->AsDoubleConstant()->GetValue()); in HandleFieldSet()
5344 int32_t v = bit_cast<int32_t, float>(value.GetConstant()->AsFloatConstant()->GetValue()); in VisitArraySet()
5359 bit_cast<int64_t, double>(value.GetConstant()->AsDoubleConstant()->GetValue()); in VisitArraySet()
5664 Immediate imm(bit_cast<int32_t, float>(fp_value)); in EmitMove()
5670 int64_t value = bit_cast<int64_t, double>(fp_value); in EmitMove()
7396 Load32BitValue(dest, bit_cast<int32_t, float>(value)); in Load32BitValue()
7400 Load64BitValue(dest, bit_cast<int64_t, double>(value)); in Load64BitValue()
Dintrinsics_mips64.cc662 __ LoadConst64(AT, bit_cast<int64_t, double>(0.5)); in GenRound()
669 __ LoadConst32(AT, bit_cast<int32_t, float>(0.5f)); in GenRound()
Dinstruction_simplifier.cc1691 if (CanDivideByReciprocalMultiplyDouble(bit_cast<int64_t, double>(value))) { in VisitDiv()
1697 if (CanDivideByReciprocalMultiplyFloat(bit_cast<int32_t, float>(value))) { in VisitDiv()
Dintrinsics_mips.cc2024 __ LoadConst32(AT, bit_cast<int32_t, float>(0.5f)); in VisitMathRoundFloat()
2090 __ LoadConst32(AT, bit_cast<int32_t, float>(0.5f)); in VisitMathRoundFloat()
Dnodes.cc725 int32_t value = bit_cast<int32_t, float>(constant->GetValue()); in CacheFloatConstant()
731 int64_t value = bit_cast<int64_t, double>(constant->GetValue()); in CacheDoubleConstant()
Dcode_generator_x86.cc5993 int32_t v = bit_cast<int32_t, float>(value.GetConstant()->AsFloatConstant()->GetValue()); in VisitArraySet()
6009 int64_t v = bit_cast<int64_t, double>(value.GetConstant()->AsDoubleConstant()->GetValue()); in VisitArraySet()
6299 int32_t value = bit_cast<int32_t, float>(fp_value); in EmitMove()
6333 int64_t value = bit_cast<int64_t, double>(dbl_value); in EmitMove()
Dcode_generator_arm_vixl.cc3715 __ Vmov(constant_d, bit_cast<double, int64_t>(k2Pow32EncodingForDouble)); in VisitTypeConversion()
6783 uint64_t int_value = bit_cast<uint64_t, double>(value); in EmitMove()
6801 __ 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.cc213 int64_t result_int64t = bit_cast<int64_t, double>(result.GetD()); in TestCeilFloor()
214 int64_t expect_int64t = bit_cast<int64_t, double>(test_pairs[i][1]); in TestCeilFloor()
Dunstarted_runtime.cc1179 result->SetJ(bit_cast<int64_t, double>(in)); in UnstartedDoubleDoubleToRawLongBits()
1784 result->SetD(bit_cast<double>(long_input)); in UnstartedJNIDoubleLongBitsToDouble()
/art/compiler/utils/x86/
Dassembler_x86.cc2938 int64_t constant = bit_cast<int64_t, double>(value); in LoadDoubleConstant()
3138 return AddInt64(bit_cast<int64_t, double>(v)); in AddDouble()
3143 return AddInt32(bit_cast<int32_t, float>(v)); in AddFloat()
/art/compiler/utils/x86_64/
Dassembler_x86_64.cc3581 int64_t constant = bit_cast<int64_t, double>(value); in LoadDoubleConstant()
3932 return AddInt64(bit_cast<int64_t, double>(v)); in AddDouble()
3937 return AddInt32(bit_cast<int32_t, float>(v)); in AddFloat()

12