Home
last modified time | relevance | path

Searched refs:bit_cast (Results 1 - 25 of 125) sorted by relevance

12345

/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Dbit_helper_test.cpp101 HWTEST_F_L0(BitHelperTest, bit_cast) in HWTEST_F_L0()
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_ in HWTEST_F_L0()
[all...]
/arkcompiler/runtime_core/static_core/compiler/tests/aarch64/
H A Dencoder64_test.h103 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_ in CallCode()
[all...]
/arkcompiler/runtime_core/static_core/compiler/tests/amd64/
H A Dencoder64_test.h95 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_ in CallCode()
[all...]
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dc2i_bridge_test.cpp134 out << "fldai.64 " << bit_cast<double>(ret) << '\n'; in MakeNoArgsMethod()
233 body << "fldai.64 " << bit_cast<double>(*argsIt) << '\n'; in GetBodyPrologue()
317 auto method = MakeNoArgsMethod(TypeId::F64, bit_cast<int64_t>(3.0_D)); in TEST_F()
367 auto method = MakeCheckArgsMethod({TypeId::I32, TypeId::F64}, {bit_cast<int64_t>(2.0_D)}); in TEST_F()
396 {4L, 3L, 2L, 1L, bit_cast<int64_t>(8.0_D)}); in TEST_F()
417 {7L, 6L, 5L, 4L, 3L, 2L, 1L, bit_cast<int64_t>(10.0_D), bit_cast<int64_t>(11.0_D), bit_cast<int64_t>(12.0_D), in TEST_F()
418 bit_cast<int64_t>(13.0_D), bit_cast<int64_ in TEST_F()
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dvalue-inl.h31 return bit_cast<float>(GetAs<uint32_t>()); in GetAs()
37 return bit_cast<double>(GetAs<uint64_t>()); in GetAs()
H A Dvalue.h47 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/
H A Dhelpers.h69 return bit_cast<EtsFloat>( in VRegValueToEtsValue()
76 return bit_cast<EtsDouble>(value.GetValue()); in VRegValueToEtsValue()
97 return ark::tooling::VRegValue(bit_cast<int32_t>(value)); in EtsValueToVRegValue()
103 return ark::tooling::VRegValue(bit_cast<int64_t>(value)); in EtsValueToVRegValue()
/arkcompiler/runtime_core/static_core/compiler/tests/aarch32/
H A Dencoder32_test.h167 std::cerr << bit_cast<uint64_t>(arg);
169 std::cerr << bit_cast<uint32_t>(arg);
201 std::cerr << " reslt=" << bit_cast<uint64_t>(result);
202 std::cerr << " current_reslt=" << bit_cast<uint64_t>(currResult);
204 std::cerr << " result=" << bit_cast<uint32_t>(result);
205 std::cerr << " current_result=" << bit_cast<uint32_t>(currResult);
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
H A Doperands.h159 explicit Imm(double value) : value_(bit_cast<uint64_t>(value)) {}; in Imm()
160 explicit Imm(float value) : value_(bit_cast<uint32_t>(value)) {}; in Imm()
175 return bit_cast<float>(static_cast<int32_t>(value_)); in GetAsFloat()
180 return bit_cast<double>(value_); in GetAsDouble()
214 return static_cast<int64_t>(bit_cast<int32_t>(std::get<float>(value_))); in GetRawValue()
216 return bit_cast<int64_t>(std::get<double>(value_)); in GetRawValue()
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
H A Dtagged_value.h75 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()
395 auto u64 = bit_cast<uint64_t>(d); in JsCastDoubleToInt()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
H A Dstd_core_Float.cpp48 return bit_cast<EtsFloat>(i); in StdCoreFloatBitCastFromInt()
53 return bit_cast<EtsInt>(f); in StdCoreFloatBitCastToInt()
H A Descompat_Atomics.cpp62 return static_cast<type>((bit_cast<u##type>(oldValue)) & (bit_cast<u##type>(value))); \
115 return static_cast<type>((bit_cast<u##type>(oldValue)) | (bit_cast<u##type>(value))); \
154 return static_cast<type>((bit_cast<u##type>(oldValue)) ^ (bit_cast<u##type>(value))); \
/arkcompiler/runtime_core/libpandafile/
H A Dvalue.h41 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/
H A Dvalue.h41 return bit_cast<float>(value_); in Get()
56 return bit_cast<T>(res); in Get()
97 return bit_cast<T>(res); in Get()
H A Dliteral_data_accessor-inl.h59 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/runtime_core/static_core/libpandabase/tests/
H A Dmath_helpers_test.cpp46 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/assembler/utils/
H A Dnumber-utils.h87 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/compiler/tests/
H A Dcodegen_runner_test.cpp330 [[maybe_unused]] auto delta = bit_cast<uintptr_t>(fp) - bit_cast<uintptr_t>(&tmp); in Callback()
H A Dencoder_operands.cpp354 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/bytecode_optimizer/
H A Dtagged_value.h52 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/ets_runtime/ecmascript/
H A Delements.cpp237 double convertedValue = base::bit_cast<double>(value); in MigrateFromRawValueToHeapValue()
266 convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in MigrateFromHeapValueToRawValue()
268 convertedValue = base::bit_cast<JSTaggedType>(value.GetDouble()); in MigrateFromHeapValueToRawValue()
286 elements->Set<false>(thread, i, JSTaggedValue(base::bit_cast<JSTaggedType>(convertedValue))); in MigrateFromHoleIntToHoleNumber()
299 double intValue = base::bit_cast<double>(elements->Get(i).GetRawData()); in MigrateFromHoleNumberToHoleInt()
301 elements->Set<false>(thread, i, JSTaggedValue(base::bit_cast<JSTaggedType>(convertedValue))); in MigrateFromHoleNumberToHoleInt()
H A Delement_accessor.cpp100 convertedValue = JSTaggedValue(base::bit_cast<double>(rawValue)); in GetTaggedValueWithElementsKind()
133 convertedValue = base::bit_cast<JSTaggedType>(static_cast<double>(intValue)); in ConvertTaggedValueWithElementsKind()
135 convertedValue = base::bit_cast<JSTaggedType>(rawValue.GetDouble()); in ConvertTaggedValueWithElementsKind()
H A Delement_accessor-inl.h75 base::bit_cast<JSTaggedType>(static_cast<double>(intValue))); in FastSet()
78 base::bit_cast<JSTaggedType>(rawValue.GetDouble())); in FastSet()
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dnumber_gate_info.h293 uint32_t tempMin = bit_cast<uint32_t>((max_ >= 0) ? std::max(0, min_) : min_); in SHR()
294 uint32_t tempMax = bit_cast<uint32_t>((min_ < 0) ? std::min(-1, max_) : max_); in SHR()
295 int32_t nmin = bit_cast<int32_t>(tempMin >> shift); in SHR()
296 int32_t nmax = bit_cast<int32_t>(tempMax >> shift); in SHR()
/arkcompiler/runtime_core/assembler/utils/
H A Dnumber-utils.h177 return bit_cast<double>(strtoull(p.data(), &end, 0)); in FloatNumber()
179 return bit_cast<float>(static_cast<uint32_t>(strtoull(p.data(), &end, 0))); in FloatNumber()

Completed in 14 milliseconds

12345