Home
last modified time | relevance | path

Searched refs:GetPowerOfTwoValue32 (Results 1 - 10 of 10) sorted by relevance

/arkcompiler/runtime_core/libpandabase/tests/
H A Dmath_helpers_test.cpp54 HWTEST(MathHelpers, GetPowerOfTwoValue32, testing::ext::TestSize.Level0) in HWTEST()
57 EXPECT_EQ(GetPowerOfTwoValue32(i), 1U); in HWTEST()
60 EXPECT_EQ(GetPowerOfTwoValue32(i), 2U); in HWTEST()
63 EXPECT_EQ(GetPowerOfTwoValue32(i), 16U); in HWTEST()
66 EXPECT_EQ(GetPowerOfTwoValue32(i), 64U); in HWTEST()
69 EXPECT_EQ(GetPowerOfTwoValue32(i), 2048U); in HWTEST()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dmath_helpers_test.cpp83 TEST(MathHelpers, GetPowerOfTwoValue32) in TEST()
86 EXPECT_EQ(GetPowerOfTwoValue32(i), 1U); in TEST()
89 EXPECT_EQ(GetPowerOfTwoValue32(i), 2U); in TEST()
92 EXPECT_EQ(GetPowerOfTwoValue32(i), 16U); in TEST()
95 EXPECT_EQ(GetPowerOfTwoValue32(i), 64U); in TEST()
98 EXPECT_EQ(GetPowerOfTwoValue32(i), 2048U); in TEST()
/arkcompiler/runtime_core/libpandabase/utils/
H A Dmath_helpers.h64 constexpr uint32_t GetPowerOfTwoValue32(uint32_t value) in GetPowerOfTwoValue32() function
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/mem/
H A Ditems_pool.h33 std::array<uint8_t, helpers::math::GetPowerOfTwoValue32(sizeof(Item))> aligned;
/arkcompiler/ets_runtime/ecmascript/
H A Dtransitions_dictionary.h172 static_cast<int>(helpers::math::GetPowerOfTwoValue32(realEntryCount + addedElements) * HASH_TABLE_BUFFER)); in ComputeCompactSize()
H A Dlinked_hash_table.h128 int capacity = static_cast<int>(helpers::math::GetPowerOfTwoValue32(rawCap)); in ComputeCapacity()
H A Dtagged_hash_table.h61 int newSize = static_cast<int>(helpers::math::GetPowerOfTwoValue32(rawSize)); in ComputeHashTableSize()
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dmath_helpers.h75 constexpr uint32_t GetPowerOfTwoValue32(uint32_t value) in GetPowerOfTwoValue32() function
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/
H A Daot_builder.cpp307 size_t hashTableSize = ark::helpers::math::GetPowerOfTwoValue32(numClasses); in AddClassHashTable()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_string_builder.cpp67 return helpers::math::GetPowerOfTwoValue32(currentLength + numElements); in GetNewBufferLength()

Completed in 6 milliseconds