| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | bit_helper_test.cpp | 101 HWTEST_F_L0(BitHelperTest, bit_cast) in HWTEST_F_L0() argument 106 EXPECT_EQ(bit_cast<uint8_t>(int8Value), MemoryCast<uint8_t>(int8Value)); in HWTEST_F_L0() 107 EXPECT_EQ(bit_cast<char>(int8Value), MemoryCast<char>(int8Value)); in HWTEST_F_L0() 108 EXPECT_EQ(bit_cast<int8_t>(uint8Value), MemoryCast<int8_t>(uint8Value)); in HWTEST_F_L0() 109 EXPECT_EQ(bit_cast<char>(uint8Value), MemoryCast<char>(uint8Value)); in HWTEST_F_L0() 110 EXPECT_EQ(bit_cast<int8_t>(char8Value), MemoryCast<int8_t>(char8Value)); in HWTEST_F_L0() 111 EXPECT_EQ(bit_cast<uint8_t>(char8Value), MemoryCast<uint8_t>(char8Value)); in HWTEST_F_L0() 116 EXPECT_EQ(bit_cast<uint16_t>(int16Value), MemoryCast<uint16_t>(int16Value)); in HWTEST_F_L0() 117 EXPECT_EQ(bit_cast<char16_t>(int16Value), MemoryCast<char16_t>(int16Value)); in HWTEST_F_L0() 118 EXPECT_EQ(bit_cast<int16_t>(uint16Value), MemoryCast<int16_t>(uint16Value)); in HWTEST_F_L0() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/tests/amd64/ |
| D | encoder64_test.h | 95 std::cerr << " param=" << bit_cast<uint32_t>(param); in CallCode() 97 std::cerr << " param=" << bit_cast<uint64_t>(param); in CallCode() 100 std::cerr << " result=" << bit_cast<uint32_t>(result); in CallCode() 101 std::cerr << " current_reslt=" << bit_cast<uint32_t>(currResult); in CallCode() 103 std::cerr << " reslt=" << bit_cast<uint64_t>(result); in CallCode() 104 std::cerr << " current_reslt=" << bit_cast<uint64_t>(currResult); in CallCode() 139 … std::cerr << " param1=" << bit_cast<uint32_t>(param1) << " param2=" << bit_cast<uint32_t>(param2); in CallCode() 141 … std::cerr << " param1=" << bit_cast<uint64_t>(param1) << " param2=" << bit_cast<uint64_t>(param2); in CallCode() 144 std::cerr << " result=" << bit_cast<uint32_t>(result); in CallCode() 145 std::cerr << " current_result=" << bit_cast<uint32_t>(currResult); in CallCode() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/tests/aarch64/ |
| D | encoder64_test.h | 103 std::cerr << " param=" << bit_cast<uint64_t>(param); in CallCode() 105 std::cerr << " param=" << bit_cast<uint32_t>(param); in CallCode() 108 std::cerr << " reslt=" << bit_cast<uint64_t>(result); in CallCode() 109 std::cerr << " current_reslt=" << bit_cast<uint64_t>(currResult); in CallCode() 111 std::cerr << " result=" << bit_cast<uint32_t>(result); in CallCode() 112 std::cerr << " current_reslt=" << bit_cast<uint32_t>(currResult); in CallCode() 146 … std::cerr << " param1=" << bit_cast<uint64_t>(param1) << " param2=" << bit_cast<uint64_t>(param2); in CallCode() 148 … std::cerr << " param1=" << bit_cast<uint32_t>(param1) << " param2=" << bit_cast<uint32_t>(param2); in CallCode() 151 std::cerr << " reslt=" << bit_cast<uint64_t>(result); in CallCode() 152 std::cerr << " current_reslt=" << bit_cast<uint64_t>(currResult); in CallCode() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tests/ |
| D | c2i_bridge_test.cpp | 134 out << "fldai.64 " << bit_cast<double>(ret) << '\n'; in MakeNoArgsMethod() 231 body << "fldai.64 " << bit_cast<double>(*argsIt) << '\n'; in GetBodyPrologue() 315 auto method = MakeNoArgsMethod(TypeId::F64, bit_cast<int64_t>(3.0_D)); in TEST_F() 365 auto method = MakeCheckArgsMethod({TypeId::I32, TypeId::F64}, {bit_cast<int64_t>(2.0_D)}); in TEST_F() 394 {4L, 3L, 2L, 1L, bit_cast<int64_t>(8.0_D)}); in TEST_F() 415 …{7L, 6L, 5L, 4L, 3L, 2L, 1L, bit_cast<int64_t>(10.0_D), bit_cast<int64_t>(11.0_D), bit_cast<int64_… in TEST_F() 416 …bit_cast<int64_t>(13.0_D), bit_cast<int64_t>(14.0_D), bit_cast<int64_t>(15.0_D), bit_cast<int64_t>… in TEST_F() 417 bit_cast<int64_t>(17.0_D)}); in TEST_F() 439 {8L, 7L, 6L, 5L, 4L, 3L, 2L, 1L, bit_cast<int64_t>(10.0_D), in TEST_F() 440 … bit_cast<int64_t>(11.0_D), bit_cast<int64_t>(12.0_D), bit_cast<int64_t>(13.0_D), in TEST_F() [all …]
|
| D | i2c_bridge_test.cpp | 434 ASSERT_EQ(bit_cast<double>(res), 3.0_D); in TEST_F() 765 int64_t args[] = {bit_cast<int64_t>(4.0_D)}; in TEST_F() 872 int64_t args[] = {1L, 2L, 3L, 4L, bit_cast<int64_t>(5.0_D)}; in TEST_F() 962 bit_cast<int64_t>(8.0_D), in TEST_F() 963 bit_cast<int64_t>(9.0_D), in TEST_F() 964 bit_cast<int64_t>(10.0_D), in TEST_F() 965 bit_cast<int64_t>(11.0_D), in TEST_F() 966 bit_cast<int64_t>(12.0_D), in TEST_F() 967 bit_cast<int64_t>(13.0_D), in TEST_F() 968 bit_cast<int64_t>(14.0_D), in TEST_F() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | value-inl.h | 31 return bit_cast<float>(GetAs<uint32_t>()); in GetAs() 37 return bit_cast<double>(GetAs<uint64_t>()); in GetAs()
|
| D | value.h | 47 value_ = bit_cast<int64_t>(value); in Value() 50 value_ = bit_cast<int32_t>(value); in Value()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/tooling/ |
| D | helpers.h | 70 return bit_cast<EtsFloat>( 77 return bit_cast<EtsDouble>(value.GetValue()); 98 return ark::tooling::VRegValue(bit_cast<int32_t>(value)); 104 return ark::tooling::VRegValue(bit_cast<int64_t>(value));
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | value.h | 41 return bit_cast<float>(value_); in Get() 56 return bit_cast<T>(res); in Get() 97 return bit_cast<T>(res); in Get()
|
| /arkcompiler/runtime_core/static_core/libpandafile/ |
| D | value.h | 41 return bit_cast<float>(value_); in Get() 56 return bit_cast<T>(res); in Get() 97 return bit_cast<T>(res); in Get()
|
| D | literal_data_accessor-inl.h | 59 value = bit_cast<double>(helpers::Read<sizeof(uint64_t)>(&sp)); in EnumerateLiteralVals() 67 value = bit_cast<float>(helpers::Read<sizeof(uint32_t)>(&sp)); in EnumerateLiteralVals()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | elements.cpp | 181 double convertedValue = base::bit_cast<double>(value); in MigrateFromRawValueToHeapValue() 210 convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in MigrateFromHeapValueToRawValue() 212 convertedValue = base::bit_cast<JSTaggedType>(value.GetDouble()); in MigrateFromHeapValueToRawValue() 230 … elements->Set<false>(thread, i, JSTaggedValue(base::bit_cast<JSTaggedType>(convertedValue))); in MigrateFromHoleIntToHoleNumber() 243 double intValue = base::bit_cast<double>(elements->Get(thread, i).GetRawData()); in MigrateFromHoleNumberToHoleInt() 245 … elements->Set<false>(thread, i, JSTaggedValue(base::bit_cast<JSTaggedType>(convertedValue))); in MigrateFromHoleNumberToHoleInt()
|
| D | element_accessor.cpp | 109 convertedValue = JSTaggedValue(base::bit_cast<double>(rawValue)); in GetTaggedValueWithElementsKind() 142 convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in ConvertTaggedValueWithElementsKind() 144 convertedValue = base::bit_cast<JSTaggedType>(rawValue.GetDouble()); in ConvertTaggedValueWithElementsKind()
|
| D | element_accessor-inl.h | 78 … base::bit_cast<JSTaggedType>(static_cast<double>(intValue))); in FastSet() 81 … base::bit_cast<JSTaggedType>(rawValue.GetDouble())); in FastSet()
|
| /arkcompiler/runtime_core/static_core/libpandabase/tests/ |
| D | math_helpers_test.cpp | 46 EXPECT_EQ(expect, IsPowerOfTwo(bit_cast<int64_t>(num))); in TEST() 48 EXPECT_EQ(expect, IsPowerOfTwo(bit_cast<int64_t>(-num))); in TEST() 62 testIsPowerOfTwo(bit_cast<uint64_t>(std::numeric_limits<int64_t>::min()), true); in TEST()
|
| /arkcompiler/runtime_core/static_core/compiler/tests/aarch32/ |
| D | encoder32_test.h | 167 std::cerr << bit_cast<uint64_t>(arg); in PrintParams() 169 std::cerr << bit_cast<uint32_t>(arg); in PrintParams() 201 std::cerr << " reslt=" << bit_cast<uint64_t>(result); in CallCodeVariadicImpl() 202 std::cerr << " current_reslt=" << bit_cast<uint64_t>(currResult); in CallCodeVariadicImpl() 204 std::cerr << " result=" << bit_cast<uint32_t>(result); in CallCodeVariadicImpl() 205 std::cerr << " current_result=" << bit_cast<uint32_t>(currResult); in CallCodeVariadicImpl()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
| D | operands.h | 170 explicit Imm(double value) : value_(bit_cast<uint64_t>(value)) {}; in Imm() 171 explicit Imm(float value) : value_(bit_cast<uint32_t>(value)) {}; in Imm() 186 return bit_cast<float>(static_cast<int32_t>(value_)); in GetAsFloat() 191 return bit_cast<double>(value_); in GetAsDouble() 225 return static_cast<int64_t>(bit_cast<int32_t>(std::get<float>(value_))); in GetRawValue() 227 return bit_cast<int64_t>(std::get<double>(value_)); in GetRawValue()
|
| /arkcompiler/runtime_core/static_core/assembler/utils/ |
| D | number-utils.h | 87 return bit_cast<double>(strtoull(p.data(), &end, 0)); in FloatNumber() 90 return bit_cast<float>(static_cast<uint32_t>(strtoull(p.data(), &end, 0))); in FloatNumber()
|
| /arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
| D | tagged_value.h | 75 return bit_cast<TaggedType>(value); in ReinterpretDoubleToTaggedType() 79 return bit_cast<double>(value); in ReinterpretTaggedTypeToDouble() 134 ASSERT(INT32_MIN <= static_cast<int32_t>(bit_cast<int64_t>(v))); in GetIntTaggedValue() 135 ASSERT(static_cast<int32_t>(bit_cast<int64_t>(v)) <= INT32_MAX); in GetIntTaggedValue() 358 return bit_cast<TaggedType>(value) >= (TAG_INT - DOUBLE_ENCODE_OFFSET); in IsImpureNaN() 396 auto u64 = bit_cast<uint64_t>(d); in JsCastDoubleToInt()
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | encoder_operands.cpp | 354 ASSERT_EQ(bit_cast<float>(static_cast<int32_t>(immF32.GetRawValue())), f32); in TEST() 355 ASSERT_EQ(bit_cast<float>(static_cast<int32_t>(immF32Min.GetRawValue())), f32Min); in TEST() 356 ASSERT_EQ(bit_cast<float>(static_cast<int32_t>(immF32Max.GetRawValue())), f32Max); in TEST() 357 ASSERT_EQ(bit_cast<float>(static_cast<int32_t>(immF32Z.GetRawValue())), f32Z); in TEST() 370 ASSERT_EQ(bit_cast<double>(immF64.GetRawValue()), f64); in TEST() 371 ASSERT_EQ(bit_cast<double>(immF64Min.GetRawValue()), f64Min); in TEST() 372 ASSERT_EQ(bit_cast<double>(immF64Max.GetRawValue()), f64Max); in TEST() 373 ASSERT_EQ(bit_cast<double>(immF64Z.GetRawValue()), f64Z); in TEST()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| D | std_core_Float.cpp | 47 return bit_cast<EtsFloat>(i); in StdCoreFloatBitCastFromInt() 52 return bit_cast<EtsInt>(f); in StdCoreFloatBitCastToInt()
|
| /arkcompiler/runtime_core/static_core/runtime/include/tooling/ |
| D | vreg_value.h | 62 return TypedValue::F32(bit_cast<float>(static_cast<uint32_t>(GetValue()))); in ToTypedValue() 64 return TypedValue::F64(bit_cast<double>(static_cast<uint64_t>(GetValue()))); in ToTypedValue()
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | tagged_value.h | 52 return bit_cast<TaggedType>(value); in ReinterpretDoubleToTaggedType() 56 return bit_cast<double>(value); in ReinterpretTaggedTypeToDouble() 150 return bit_cast<TaggedType>(value) >= (TAG_INT - DOUBLE_ENCODE_OFFSET); in IsImpureNaN()
|
| /arkcompiler/runtime_core/assembler/ |
| D | asm_isapi.rb | 53 def bit_cast(what, to_type, from_type) method 54 "bit_cast<#{to_type}, #{from_type}>(static_cast<#{from_type}>(std::get<double>(#{what})))"
|
| /arkcompiler/runtime_core/static_core/assembler/ |
| D | asm_isapi.rb | 53 def bit_cast(what, to_type, from_type) method 54 "bit_cast<#{to_type}, #{from_type}>(static_cast<#{from_type}>(std::get<double>(#{what})))"
|