Home
last modified time | relevance | path

Searched refs:DoubleInRangeInt32 (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
Dnumber_helper_test.cpp297 HWTEST_F_L0(NumberHelperTest, DoubleInRangeInt32) in HWTEST_F_L0() argument
300 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(2147483649.0), 2147483647); in HWTEST_F_L0()
302 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(-2147483649.0), -2147483648); in HWTEST_F_L0()
304 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(128.0), 128); in HWTEST_F_L0()
305 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(-128.999999999999999), -129); in HWTEST_F_L0()
306 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(256.0), 256); in HWTEST_F_L0()
307 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(-256.0), -256); in HWTEST_F_L0()
308 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(12345.6789), 12345); in HWTEST_F_L0()
309 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(-12345.6789), -12345); in HWTEST_F_L0()
310 EXPECT_EQ(NumberHelper::DoubleInRangeInt32(65535.999999999999999), 65536); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_sharedarraybuffer.cpp188 int32_t start = base::NumberHelper::DoubleInRangeInt32(relativeStart.GetNumber()); in Slice()
206 end = base::NumberHelper::DoubleInRangeInt32(relativeEnd.GetNumber()); in Slice()
Dbuiltins_dataview.cpp55 int32_t offsetInt = base::NumberHelper::DoubleInRangeInt32(offsetNumber.GetNumber()); in DataViewConstructor()
367 int32_t indexInt = base::NumberHelper::DoubleInRangeInt32(numberIndex.GetNumber()); in GetViewValue()
422 int64_t index = base::NumberHelper::DoubleInRangeInt32(numberIndex.GetNumber()); in SetViewValue()
Dbuiltins_arraybuffer.cpp142 int32_t start = base::NumberHelper::DoubleInRangeInt32(relativeStart.GetNumber()); in Slice()
160 end = base::NumberHelper::DoubleInRangeInt32(relativeEnd.GetNumber()); in Slice()
Dbuiltins_string.cpp320 int32_t pos = base::NumberHelper::DoubleInRangeInt32(posVal.GetNumber()); in CodePointAt()
447 pos = base::NumberHelper::DoubleInRangeInt32(posVal.GetNumber()); in Includes()
800 count = base::NumberHelper::DoubleInRangeInt32(d); in Repeat()
/arkcompiler/ets_runtime/ecmascript/base/
Datomic_helper.cpp71 int32_t index = base::NumberHelper::DoubleInRangeInt32(accessIndex.GetNumber()); in ValidateAtomicAccess()
Dnumber_helper.h106 static int32_t DoubleInRangeInt32(double d);
Dnumber_helper.cpp689 int32_t NumberHelper::DoubleInRangeInt32(double d) in DoubleInRangeInt32() function in panda::ecmascript::base::NumberHelper