Searched refs:TruncateDouble (Results 1 – 13 of 13) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | number_helper_test.cpp | 211 HWTEST_F_L0(NumberHelperTest, TruncateDouble) in HWTEST_F_L0() argument 213 EXPECT_EQ(NumberHelper::TruncateDouble(NAN_VALUE), 0); in HWTEST_F_L0() 214 EXPECT_EQ(NumberHelper::TruncateDouble(POSITIVE_INFINITY), POSITIVE_INFINITY); in HWTEST_F_L0() 216 EXPECT_EQ(NumberHelper::TruncateDouble(4.1), 4); in HWTEST_F_L0() 217 EXPECT_EQ(NumberHelper::TruncateDouble(4.9), 4); in HWTEST_F_L0() 218 EXPECT_EQ(NumberHelper::TruncateDouble(101.111), 101); in HWTEST_F_L0() 219 EXPECT_EQ(NumberHelper::TruncateDouble(101.999), 101); in HWTEST_F_L0() 221 EXPECT_EQ(NumberHelper::TruncateDouble(-4.1), -4); in HWTEST_F_L0() 222 EXPECT_EQ(NumberHelper::TruncateDouble(-4.9), -4); in HWTEST_F_L0() 223 EXPECT_EQ(NumberHelper::TruncateDouble(-101.111), -101); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_date.cpp | 136 double hourInteger = NumberHelper::TruncateDouble(hour); in MakeTime() 137 double minInteger = NumberHelper::TruncateDouble(min); in MakeTime() 138 double secInteger = NumberHelper::TruncateDouble(sec); in MakeTime() 139 double msInteger = NumberHelper::TruncateDouble(ms); in MakeTime() 150 double yearInteger = NumberHelper::TruncateDouble(year); in MakeDay() 151 double monthInteger = NumberHelper::TruncateDouble(month); in MakeDay() 162 return static_cast<double>(days - 1) + NumberHelper::TruncateDouble(date); in MakeDay() 182 return NumberHelper::TruncateDouble(time); in TimeClip() 547 year = NumberHelper::TruncateDouble(year); in UTC() 884 date[firstValue + i] = NumberHelper::TruncateDouble(temp); in SetDateValue()
|
D | js_tagged_value-inl.h | 204 return JSTaggedNumber(base::NumberHelper::TruncateDouble(number.GetNumber())); in ToInteger()
|
D | js_tagged_value.cpp | 988 double len = base::NumberHelper::TruncateDouble(integerIndex.GetNumber()); in ToIndex()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | number_helper.h | 102 static double TruncateDouble(double d);
|
D | array_helper.cpp | 237 tempArgs.start = base::NumberHelper::TruncateDouble(targetIndexTemp.GetNumber()); in FlattenIntoArray()
|
D | number_helper.cpp | 416 double NumberHelper::TruncateDouble(double d) in TruncateDouble() function in panda::ecmascript::base::NumberHelper
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_atomics.cpp | 264 c = base::NumberHelper::TruncateDouble(countTemp.GetNumber()); in Notify()
|
D | builtins_array.cpp | 1160 fromIndex = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in IndexOf() 1346 fromIndex = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in LastIndexOf() 2782 depthNum = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in Flat() 2870 fromIndex = base::NumberHelper::TruncateDouble(fromIndexTemp.GetNumber()); in Includes()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 523 …std::isfinite(doubleExponent) && base::NumberHelper::TruncateDouble(doubleExponent) == doubleExpon… in DEF_RUNTIME_STUBS() 524 base::NumberHelper::TruncateDouble(doubleExponent / 2) + base::HALF == // 2 : half in DEF_RUNTIME_STUBS()
|
D | runtime_stubs-inl.h | 95 …std::isfinite(doubleExponent) && base::NumberHelper::TruncateDouble(doubleExponent) == doubleExpon… in RuntimeExp() 96 …base::NumberHelper::TruncateDouble(doubleExponent / 2) + base::HALF == (doubleExponent / 2)) { //… in RuntimeExp()
|
/arkcompiler/ets_runtime/ecmascript/interpreter/ |
D | interpreter-inl.h | 2111 bool truncEqual = base::NumberHelper::TruncateDouble(doubleExponent) == doubleExponent; in RunInternal() 2112 … bool halfTruncEqual = (base::NumberHelper::TruncateDouble(doubleExponent / 2) + base::HALF) == in RunInternal()
|
D | interpreter_assembly.cpp | 1501 bool truncEqual = base::NumberHelper::TruncateDouble(doubleExponent) == doubleExponent; in HandleExpImm8V8() 1502 … bool halfTruncEqual = (base::NumberHelper::TruncateDouble(doubleExponent / 2) + base::HALF) == in HandleExpImm8V8()
|