Home
last modified time | relevance | path

Searched refs:INT16_BITS (Results 1 – 4 of 4) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp256 EXPECT_EQ(NumberHelper::DoubleToInt(256.0, INT16_BITS), 256); in HWTEST_F_L0()
257 EXPECT_EQ(NumberHelper::DoubleToInt(256.555555555555556, INT16_BITS), 256); in HWTEST_F_L0()
258 EXPECT_EQ(NumberHelper::DoubleToInt(256.999999999999999, INT16_BITS), 257); in HWTEST_F_L0()
259 EXPECT_EQ(NumberHelper::DoubleToInt(1024.56789, INT16_BITS), 1024); in HWTEST_F_L0()
260 EXPECT_EQ(NumberHelper::DoubleToInt(-1024.987654, INT16_BITS), -1024); in HWTEST_F_L0()
263 EXPECT_EQ(NumberHelper::DoubleToInt(65536.0, INT16_BITS), 0); in HWTEST_F_L0()
264 EXPECT_EQ(NumberHelper::DoubleToInt(-65536.0, INT16_BITS), 0); in HWTEST_F_L0()
267 EXPECT_EQ(NumberHelper::DoubleToInt(nanDouble, INT16_BITS), 0); in HWTEST_F_L0()
269 EXPECT_EQ(NumberHelper::DoubleToInt(infDouble, INT16_BITS), 0); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_tagged_number.h69 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT16_BITS); in ToInt16()
Djs_tagged_value-inl.h224 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT16_BITS); in ToInt16()
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.h65 static constexpr size_t INT16_BITS = 16; variable