Searched refs:DoubleInRangeInt32 (Results 1 – 8 of 8) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | number_helper_test.cpp | 297 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/ |
D | builtins_sharedarraybuffer.cpp | 188 int32_t start = base::NumberHelper::DoubleInRangeInt32(relativeStart.GetNumber()); in Slice() 206 end = base::NumberHelper::DoubleInRangeInt32(relativeEnd.GetNumber()); in Slice()
|
D | builtins_dataview.cpp | 55 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()
|
D | builtins_arraybuffer.cpp | 142 int32_t start = base::NumberHelper::DoubleInRangeInt32(relativeStart.GetNumber()); in Slice() 160 end = base::NumberHelper::DoubleInRangeInt32(relativeEnd.GetNumber()); in Slice()
|
D | builtins_string.cpp | 320 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/ |
D | atomic_helper.cpp | 71 int32_t index = base::NumberHelper::DoubleInRangeInt32(accessIndex.GetNumber()); in ValidateAtomicAccess()
|
D | number_helper.h | 106 static int32_t DoubleInRangeInt32(double d);
|
D | number_helper.cpp | 689 int32_t NumberHelper::DoubleInRangeInt32(double d) in DoubleInRangeInt32() function in panda::ecmascript::base::NumberHelper
|