Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp238 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/
Djs_tagged_number.h79 return base::NumberHelper::DoubleToInt(GetNumber(), base::INT8_BITS); in ToInt8()
Djs_tagged_value-inl.h237 return base::NumberHelper::DoubleToInt(number.GetNumber(), base::INT8_BITS); in ToInt8()
/arkcompiler/ets_runtime/ecmascript/base/
Dnumber_helper.h66 static constexpr size_t INT8_BITS = 8; variable