Searched refs:INT16_BITS (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | number_helper_test.cpp | 256 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/ |
D | js_tagged_number.h | 69 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT16_BITS); in ToInt16()
|
D | js_tagged_value-inl.h | 224 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT16_BITS); in ToInt16()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | number_helper.h | 65 static constexpr size_t INT16_BITS = 16; variable
|