Home
last modified time | relevance | path

Searched refs:GetPowerOfTwoValue32 (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/runtime_core/libpandabase/tests/
Dmath_helpers_test.cpp54 HWTEST(MathHelpers, GetPowerOfTwoValue32, testing::ext::TestSize.Level0)
57 EXPECT_EQ(GetPowerOfTwoValue32(i), 1U);
60 EXPECT_EQ(GetPowerOfTwoValue32(i), 2U);
63 EXPECT_EQ(GetPowerOfTwoValue32(i), 16U);
66 EXPECT_EQ(GetPowerOfTwoValue32(i), 64U);
69 EXPECT_EQ(GetPowerOfTwoValue32(i), 2048U);
/arkcompiler/runtime_core/libpandabase/utils/
Dmath_helpers.h64 constexpr uint32_t GetPowerOfTwoValue32(uint32_t value) in GetPowerOfTwoValue32() function
/arkcompiler/ets_runtime/ecmascript/
Dtransitions_dictionary.h159 …static_cast<int>(helpers::math::GetPowerOfTwoValue32(realEntryCount + addedElements) * HASH_TABLE_… in ComputeCompactSize()
Dlinked_hash_table.h123 int capacity = static_cast<int>(helpers::math::GetPowerOfTwoValue32(rawCap)); in ComputeCapacity()
Dtagged_hash_table.h58 int newSize = static_cast<int>(helpers::math::GetPowerOfTwoValue32(rawSize)); in ComputeHashTableSize()