Searched refs:INT8_BITS (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | number_helper_test.cpp | 238 EXPECT_EQ(NumberHelper::DoubleToInt(9.0, INT8_BITS), 9); in HWTEST_F_L0() 239 EXPECT_EQ(NumberHelper::DoubleToInt(9.5555555555555559, INT8_BITS), 9); in HWTEST_F_L0() 240 EXPECT_EQ(NumberHelper::DoubleToInt(9.9999999999999999, INT8_BITS), 10); in HWTEST_F_L0() 241 EXPECT_EQ(NumberHelper::DoubleToInt(128.123456, INT8_BITS), 128); in HWTEST_F_L0() 242 EXPECT_EQ(NumberHelper::DoubleToInt(-128.987654321, INT8_BITS), -128); in HWTEST_F_L0() 245 EXPECT_EQ(NumberHelper::DoubleToInt(256.0, INT8_BITS), 0); in HWTEST_F_L0() 246 EXPECT_EQ(NumberHelper::DoubleToInt(-256.0, INT8_BITS), 0); in HWTEST_F_L0() 249 EXPECT_EQ(NumberHelper::DoubleToInt(nanDouble, INT8_BITS), 0); in HWTEST_F_L0() 251 EXPECT_EQ(NumberHelper::DoubleToInt(infDouble, INT8_BITS), 0); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_tagged_number.h | 79 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT8_BITS); in ToInt8()
|
D | js_tagged_value-inl.h | 237 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT8_BITS); in ToInt8()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | number_helper.h | 66 static constexpr size_t INT8_BITS = 8; variable
|